Interface OutboundRequestDecorator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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 decoratorContext, DecoratorExecution execution)
      Decorates an Outbound request
    • Method Detail

      • decorate

        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 decoratorContext,
                                                                                                             DecoratorExecution execution)
        Decorates an Outbound request
        Parameters:
        httpHeaders - The headers to be used for the outgoing request.
        payload - The payload used for the request
        decoratorContext - 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()