Class DefaultCsrfOutboundRequestDecorator

    • Constructor Detail

      • DefaultCsrfOutboundRequestDecorator

        public DefaultCsrfOutboundRequestDecorator()
    • Method Detail

      • decorate

        public org.springframework.http.HttpEntity<java.util.Map<java.lang.String,​java.lang.Object>> decorate​(org.springframework.http.HttpHeaders httpHeaders,
                                                                                                                    java.util.Map<java.lang.String,​java.lang.Object> payload,
                                                                                                                    DecoratorContext context,
                                                                                                                    DecoratorExecution execution)
        Description copied from interface: OutboundRequestDecorator
        Decorates an Outbound request
        Specified by:
        decorate in interface OutboundRequestDecorator
        Parameters:
        httpHeaders - The headers to be used for the outgoing request.
        payload - The payload used for the request
        context - Some extra information that can be used by decorators.
        execution - The execution chain.
        Returns:
        An HttpEntity containing the result of the decoration. Normally by calling execution.createHttpEntity()
      • fetchCsrfTokenFromSCPI

        protected de.hybris.platform.outboundservices.decorator.impl.DefaultCsrfOutboundRequestDecorator.CsrfParameters fetchCsrfTokenFromSCPI​(ConsumedDestinationModel destinationModel)
      • setHeadersForTokenFetching

        protected static org.springframework.http.HttpHeaders setHeadersForTokenFetching()
      • setIntegrationRestTemplateFactory

        public void setIntegrationRestTemplateFactory​(IntegrationRestTemplateFactory integrationRestTemplateFactory)