Interface DecoratorExecution

  • All Known Implementing Classes:
    DefaultDecoratorExecution

    public interface DecoratorExecution
    Represents 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 request
        context - Some extra information that can be used by decorators.
        Returns:
        An HttpEntity containing the result of the decoration.