Class NotificationMessageHandler
- java.lang.Object
-
- org.eclipse.dataspaceconnector.ids.api.multipart.handler.NotificationMessageHandler
-
-
Constructor Summary
Constructors Constructor Description NotificationMessageHandler(java.lang.String connectorId, @NotNull NotificationMessageHandlerRegistry subhandlers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandle(@NotNull MultipartRequest multipartRequest)Examines whether the current handler instance is applicable handling a certainMultipartRequest.@Nullable MultipartResponsehandleRequest(@NotNull MultipartRequest multipartRequest, @NotNull org.eclipse.dataspaceconnector.spi.iam.ClaimToken claimToken)Delegate the processing of the request to the firstHandlerin the registry that accepts this kind of request, if any.
-
-
-
Constructor Detail
-
NotificationMessageHandler
public NotificationMessageHandler(java.lang.String connectorId, @NotNull @NotNull NotificationMessageHandlerRegistry subhandlers)
-
-
Method Detail
-
canHandle
public boolean canHandle(@NotNull @NotNull MultipartRequest multipartRequest)Description copied from interface:HandlerExamines whether the current handler instance is applicable handling a certainMultipartRequest.
-
handleRequest
@Nullable public @Nullable MultipartResponse handleRequest(@NotNull @NotNull MultipartRequest multipartRequest, @NotNull @NotNull org.eclipse.dataspaceconnector.spi.iam.ClaimToken claimToken)
Delegate the processing of the request to the firstHandlerin the registry that accepts this kind of request, if any.- Specified by:
handleRequestin interfaceHandler- Parameters:
multipartRequest- from another connector- Returns:
MultipartResponseor null, if the request cannot be handled (e.g. when content missing)
-
-