Class EndpointDataReferenceHandler

  • All Implemented Interfaces:
    Handler

    public class EndpointDataReferenceHandler
    extends java.lang.Object
    implements Handler
    Implementation of the Handler class for handling of EndpointDataReferenceMessage. Note that we use the ParticipantUpdateMessage IDS message to convey the EndpointDataReferenceMessage.
    • Constructor Summary

      Constructors 
      Constructor Description
      EndpointDataReferenceHandler​(@NotNull org.eclipse.dataspaceconnector.spi.monitor.Monitor monitor, @NotNull java.lang.String connectorId, @NotNull org.eclipse.dataspaceconnector.spi.transfer.edr.EndpointDataReferenceReceiverRegistry receiverRegistry, @NotNull org.eclipse.dataspaceconnector.spi.transfer.edr.EndpointDataReferenceTransformerRegistry transformerRegistry, @NotNull org.eclipse.dataspaceconnector.spi.types.TypeManager typeManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canHandle​(@NotNull MultipartRequest multipartRequest)
      Examines whether the current handler instance is applicable handling a certain MultipartRequest.
      @Nullable MultipartResponse handleRequest​(@NotNull MultipartRequest multipartRequest, @NotNull org.eclipse.dataspaceconnector.spi.iam.ClaimToken claimToken)
      Handling of the request is as follows: - decode EndpointDataReference from the request payload, - apply a EndpointDataReferenceTransformer on the previous EDR, - finally apply EndpointDataReferenceReceiver to the resulting EDR to dispatch it into the consumer environment.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EndpointDataReferenceHandler

        public EndpointDataReferenceHandler​(@NotNull
                                            @NotNull org.eclipse.dataspaceconnector.spi.monitor.Monitor monitor,
                                            @NotNull
                                            @NotNull java.lang.String connectorId,
                                            @NotNull
                                            @NotNull org.eclipse.dataspaceconnector.spi.transfer.edr.EndpointDataReferenceReceiverRegistry receiverRegistry,
                                            @NotNull
                                            @NotNull org.eclipse.dataspaceconnector.spi.transfer.edr.EndpointDataReferenceTransformerRegistry transformerRegistry,
                                            @NotNull
                                            @NotNull org.eclipse.dataspaceconnector.spi.types.TypeManager typeManager)
    • 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)
        Handling of the request is as follows: - decode EndpointDataReference from the request payload, - apply a EndpointDataReferenceTransformer on the previous EDR, - finally apply EndpointDataReferenceReceiver to the resulting EDR to dispatch it into the consumer environment.
        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)