Interface TaskPushNotificationConfigMapper_v0_3

All Known Implementing Classes:
TaskPushNotificationConfigMapper_v0_3Impl

public interface TaskPushNotificationConfigMapper_v0_3
Bidirectional mapper for converting TaskPushNotificationConfig between A2A Protocol v0.3 and v1.0.

Key differences:

  • v0.3: Nested structure with TaskPushNotificationConfig(taskId, PushNotificationConfig)
  • v1.0: Flattened structure with TaskPushNotificationConfig(id, taskId, url, token, authentication, tenant)

Conversion strategy:

  • v0.3 → v1.0: Extract fields from nested PushNotificationConfig, add tenant field (default "")
  • v1.0 → v0.3: Nest url/token/authentication/id into PushNotificationConfig, drop tenant field
  • Field Details

  • Method Details

    • toV10

      Converts v0.3 TaskPushNotificationConfig to v1.0 TaskPushNotificationConfig.

      Flattens the nested PushNotificationConfig structure and adds the tenant field (default "").

      Parameters:
      v03 - the v0.3 task push notification config
      Returns:
      the equivalent v1.0 task push notification config
    • fromV10

      Converts v1.0 TaskPushNotificationConfig to v0.3 TaskPushNotificationConfig.

      Nests the url/token/authentication/id fields into a PushNotificationConfig and drops the tenant field.

      Parameters:
      v10 - the v1.0 task push notification config
      Returns:
      the equivalent v0.3 task push notification config