Interface DecoratorExecution
- All Known Implementing Classes:
DefaultDecoratorExecution
public interface DecoratorExecution
Represents a Decorator execution step.
-
Method Summary
Modifier and TypeMethodDescriptioncreateHttpEntity(org.springframework.http.HttpHeaders httpHeaders, Map<String, Object> payload, DecoratorContext context) Calls the next decorator in the chain.
-
Method Details
-
createHttpEntity
org.springframework.http.HttpEntity<Map<String,Object>> createHttpEntity(org.springframework.http.HttpHeaders httpHeaders, Map<String, 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.
-