Class ContractRejectionHandler

  • All Implemented Interfaces:
    Handler

    public class ContractRejectionHandler
    extends java.lang.Object
    implements Handler
    This class handles and processes incoming IDS ContractRejectionMessages.
    • Constructor Summary

      Constructors 
      Constructor Description
      ContractRejectionHandler​(@NotNull org.eclipse.dataspaceconnector.spi.monitor.Monitor monitor, @NotNull java.lang.String connectorId, @NotNull org.eclipse.dataspaceconnector.spi.contract.negotiation.ProviderContractNegotiationManager providerNegotiationManager, @NotNull org.eclipse.dataspaceconnector.spi.contract.negotiation.ConsumerContractNegotiationManager consumerNegotiationManager)  
    • Constructor Detail

      • ContractRejectionHandler

        public ContractRejectionHandler​(@NotNull
                                        @NotNull org.eclipse.dataspaceconnector.spi.monitor.Monitor monitor,
                                        @NotNull
                                        @NotNull java.lang.String connectorId,
                                        @NotNull
                                        @NotNull org.eclipse.dataspaceconnector.spi.contract.negotiation.ProviderContractNegotiationManager providerNegotiationManager,
                                        @NotNull
                                        @NotNull org.eclipse.dataspaceconnector.spi.contract.negotiation.ConsumerContractNegotiationManager consumerNegotiationManager)
    • 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)
        Description copied from interface: Handler
        Handles the given MultipartRequest.
        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)