Class DefaultOutboundServiceFacade
- java.lang.Object
-
- de.hybris.platform.outboundservices.facade.impl.DefaultOutboundServiceFacade
-
- All Implemented Interfaces:
OutboundServiceFacade
public class DefaultOutboundServiceFacade extends java.lang.Object implements OutboundServiceFacade
Default implementation of OutboundServiceFacade.
-
-
Constructor Summary
Constructors Constructor Description DefaultOutboundServiceFacade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<OutboundRequestDecorator>addMonitoringDecorator(java.util.List<OutboundRequestDecorator> requestDecorators)protected org.springframework.http.HttpEntity<java.util.Map<java.lang.String,java.lang.Object>>createHttpEntity(ItemModel itemModel, java.lang.String integrationObjectCode, ConsumedDestinationModel destinationModel, java.util.Map<java.lang.String,java.lang.Object> payload)protected rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>>createObservable(org.springframework.web.client.RestOperations restOperations, ItemModel itemModel, java.lang.String integrationObjectCode, ConsumedDestinationModel destinationModel, java.util.Map<java.lang.String,java.lang.Object> payload)protected java.lang.StringfindIntegrationObjectItemCode(java.lang.String integrationObjectCode, ItemModel itemModel)protected ConsumedDestinationModelgetConsumedDestinationModelById(java.lang.String destinationId)protected FlexibleSearchServicegetFlexibleSearchService()protected IntegrationObjectServicegetIntegrationObjectService()protected IntegrationRestTemplateFactorygetIntegrationRestTemplateFactory()protected OutboundRequestDecoratorgetMonitoringDecorator()protected java.util.List<OutboundRequestDecorator>getOutboundRequestDecorators()protected OutboundServicesConfigurationgetOutboundServicesConfiguration()protected rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>>orchestrate(ItemModel itemModel, java.lang.String integrationObjectCode, java.lang.String destinationId)rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>>send(ItemModel itemModel, java.lang.String integrationObjectCode, java.lang.String destinationId)Method orchestrates the services to build the payload and to integrate with restful endpoint.voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)voidsetIntegrationObjectService(IntegrationObjectService integrationObjectService)voidsetIntegrationRestTemplateFactory(IntegrationRestTemplateFactory integrationRestTemplateFactory)voidsetMonitoringDecorator(OutboundRequestDecorator monitoringDecorator)voidsetOutboundRequestDecorators(java.util.List<OutboundRequestDecorator> decorators)voidsetOutboundServicesConfiguration(OutboundServicesConfiguration outboundServicesConfiguration)
-
-
-
Method Detail
-
send
public rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>> send(ItemModel itemModel, java.lang.String integrationObjectCode, java.lang.String destinationId)
Description copied from interface:OutboundServiceFacadeMethod orchestrates the services to build the payload and to integrate with restful endpoint.- Specified by:
sendin interfaceOutboundServiceFacade- Parameters:
itemModel- the model to be convertedintegrationObjectCode- the name of the integration object to convert this model as payloaddestinationId- endpoint destination information- Returns:
- rx.Observable which allows the caller to subscribe the callback method
-
orchestrate
protected rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>> orchestrate(ItemModel itemModel, java.lang.String integrationObjectCode, java.lang.String destinationId)
-
getConsumedDestinationModelById
protected ConsumedDestinationModel getConsumedDestinationModelById(java.lang.String destinationId)
-
addMonitoringDecorator
protected java.util.List<OutboundRequestDecorator> addMonitoringDecorator(java.util.List<OutboundRequestDecorator> requestDecorators)
-
createObservable
protected rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>> createObservable(org.springframework.web.client.RestOperations restOperations, ItemModel itemModel, java.lang.String integrationObjectCode, ConsumedDestinationModel destinationModel, java.util.Map<java.lang.String,java.lang.Object> payload)
-
createHttpEntity
protected org.springframework.http.HttpEntity<java.util.Map<java.lang.String,java.lang.Object>> createHttpEntity(ItemModel itemModel, java.lang.String integrationObjectCode, ConsumedDestinationModel destinationModel, java.util.Map<java.lang.String,java.lang.Object> payload)
-
findIntegrationObjectItemCode
protected java.lang.String findIntegrationObjectItemCode(java.lang.String integrationObjectCode, ItemModel itemModel)
-
getIntegrationRestTemplateFactory
protected IntegrationRestTemplateFactory getIntegrationRestTemplateFactory()
-
setIntegrationRestTemplateFactory
public void setIntegrationRestTemplateFactory(IntegrationRestTemplateFactory integrationRestTemplateFactory)
-
getOutboundRequestDecorators
protected java.util.List<OutboundRequestDecorator> getOutboundRequestDecorators()
-
setOutboundRequestDecorators
public void setOutboundRequestDecorators(java.util.List<OutboundRequestDecorator> decorators)
-
getMonitoringDecorator
protected OutboundRequestDecorator getMonitoringDecorator()
-
setMonitoringDecorator
public void setMonitoringDecorator(OutboundRequestDecorator monitoringDecorator)
-
getIntegrationObjectService
protected IntegrationObjectService getIntegrationObjectService()
-
setIntegrationObjectService
public void setIntegrationObjectService(IntegrationObjectService integrationObjectService)
-
getOutboundServicesConfiguration
protected OutboundServicesConfiguration getOutboundServicesConfiguration()
-
setOutboundServicesConfiguration
public void setOutboundServicesConfiguration(OutboundServicesConfiguration outboundServicesConfiguration)
-
getFlexibleSearchService
protected FlexibleSearchService getFlexibleSearchService()
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
-