Class NotificationMessageHandler

  • All Implemented Interfaces:
    Handler

    public class NotificationMessageHandler
    extends java.lang.Object
    implements Handler
    Implementation of the Handler class for handling of NotificationMessage
    • Constructor Detail

    • Method Detail

      • canHandle

        public boolean canHandle​(@NotNull
                                 @NotNull MultipartRequest multipartRequest)
        Description copied from interface: Handler
        Examines whether the current handler instance is applicable handling a certain MultipartRequest.
        Specified by:
        canHandle in interface Handler
        Parameters:
        multipartRequest - from another connector
        Returns:
        true if the handler can handle the request
      • 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 first Handler in the registry that accepts this kind of request, if any.
        Specified by:
        handleRequest in interface Handler
        Parameters:
        multipartRequest - from another connector
        Returns:
        MultipartResponse or null, if the request cannot be handled (e.g. when content missing)