Interface DecoratorExecution
-
- All Known Implementing Classes:
DefaultDecoratorExecution
public interface DecoratorExecutionRepresents a Decorator execution step.
-
-
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>>createHttpEntity(org.springframework.http.HttpHeaders httpHeaders, java.util.Map<java.lang.String,java.lang.Object> payload, DecoratorContext context)Calls the next decorator in the chain.
-
-
-
Method Detail
-
createHttpEntity
org.springframework.http.HttpEntity<java.util.Map<java.lang.String,java.lang.Object>> createHttpEntity(org.springframework.http.HttpHeaders httpHeaders, java.util.Map<java.lang.String,java.lang.Object> payload, DecoratorContext context)Calls the next decorator in the chain.- Parameters:
httpHeaders- The headers to be used for the outgoing request.payload- The payload used for the requestcontext- Some extra information that can be used by decorators.- Returns:
- An
HttpEntitycontaining the result of the decoration.
-
-