Interface OutboundRequestDecorator
-
- All Known Implementing Classes:
DefaultAcceptHeaderRequestDecorator,DefaultCsrfOutboundRequestDecorator,DefaultOutboundMonitoringRequestDecorator,DefaultPayloadBuildingRequestDecorator,DefaultSapPassportRequestDecorator,FailingRequestDecorator,SapPassportRemoverRequestDecorator
public interface OutboundRequestDecoratorDecorates the outbound client request. By modifying headers and payload along the decorator chain.
-
-
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 requestdecoratorContext- Some extra information that can be used by decorators.execution- The execution chain.- Returns:
- An
HttpEntitycontaining the result of the decoration. Normally by callingexecution.createHttpEntity()
-
-