Class DefaultDecoratorExecution

java.lang.Object
de.hybris.platform.outboundservices.decorator.DefaultDecoratorExecution
All Implemented Interfaces:
DecoratorExecution

public class DefaultDecoratorExecution extends Object implements DecoratorExecution
  • Constructor Details

    • DefaultDecoratorExecution

      public DefaultDecoratorExecution(Iterable<OutboundRequestDecorator> it)
      Instantiates this decorator execution
      Parameters:
      it - an iterable containing the decorators to be applied to the outgoing request.
    • DefaultDecoratorExecution

      public DefaultDecoratorExecution(Iterator<OutboundRequestDecorator> it)
      Instantiates this decorator execution
      Parameters:
      it - an iterator of the decorators to be applied to the outgoing request.
  • Method Details

    • createHttpEntity

      public org.springframework.http.HttpEntity<Map<String,Object>> createHttpEntity(org.springframework.http.HttpHeaders httpHeaders, Map<String,Object> payload, DecoratorContext context)
      Description copied from interface: DecoratorExecution
      Calls the next decorator in the chain.
      Specified by:
      createHttpEntity in interface DecoratorExecution
      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.