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 Summary
FieldsModifier and TypeFieldDescriptionstatic final TaskPushNotificationConfigMapper_v0_3Singleton instance accessed viaA2AMappers_v0_3factory. -
Method Summary
Modifier and TypeMethodDescriptiondefault TaskPushNotificationConfig_v0_3Converts v1.0 TaskPushNotificationConfig to v0.3 TaskPushNotificationConfig.default TaskPushNotificationConfigConverts v0.3 TaskPushNotificationConfig to v1.0 TaskPushNotificationConfig.
-
Field Details
-
INSTANCE
Singleton instance accessed viaA2AMappers_v0_3factory.
-
-
Method Details
-
toV10
Converts v0.3 TaskPushNotificationConfig to v1.0 TaskPushNotificationConfig.Flattens the nested
PushNotificationConfigstructure 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
PushNotificationConfigand drops the tenant field.- Parameters:
v10- the v1.0 task push notification config- Returns:
- the equivalent v0.3 task push notification config
-