Class SalesOrderSimulationOutboundRequestImpl
java.lang.Object
de.hybris.platform.sap.sapsalesordersimulation.service.impl.SalesOrderSimulationOutboundRequestImpl
- All Implemented Interfaces:
SalesOrderSimulationOutboundRequest
public class SalesOrderSimulationOutboundRequestImpl
extends Object
implements SalesOrderSimulationOutboundRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.http.HttpHeaderscreateHTTPHeader(AuthenticationResult authenticationResult) protected AuthenticationResultgetAuthenticationDetails(ConsumedDestinationModel destinationModel) protected StringgetCookies(org.springframework.http.HttpHeaders headers) protected StringgetCsrfToken(org.springframework.http.HttpHeaders headers) protected StringgetCsrfURL(ConsumedDestinationModel destinationModel) protected de.hybris.platform.apiregistryservices.services.DestinationService<ConsumedDestinationModel>Get the response from the API passing the requestData.org.springframework.web.client.RestTemplateprotected de.hybris.platform.servicelayer.session.SessionServiceprotected org.springframework.http.ResponseEntity<SalesOrderSimulationData>postSimulationRequest(String url, SalesOrderSimulationRequestData requestData, org.springframework.http.HttpHeaders header) voidsetDestinationService(de.hybris.platform.apiregistryservices.services.DestinationService<ConsumedDestinationModel> destinationService) voidsetSalesOrderSimulationRestTemplate(org.springframework.web.client.RestTemplate salesOrderSimulationRestTemplate) voidsetSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
-
Constructor Details
-
SalesOrderSimulationOutboundRequestImpl
public SalesOrderSimulationOutboundRequestImpl()
-
-
Method Details
-
getResponseFromSalesOrderSimulation
public SalesOrderSimulationData getResponseFromSalesOrderSimulation(SalesOrderSimulationRequestData requestData) Description copied from interface:SalesOrderSimulationOutboundRequestGet the response from the API passing the requestData.- Specified by:
getResponseFromSalesOrderSimulationin interfaceSalesOrderSimulationOutboundRequest- Returns:
- salesOrderSimulationData.
-
postSimulationRequest
protected org.springframework.http.ResponseEntity<SalesOrderSimulationData> postSimulationRequest(String url, SalesOrderSimulationRequestData requestData, org.springframework.http.HttpHeaders header) -
createHTTPHeader
protected org.springframework.http.HttpHeaders createHTTPHeader(AuthenticationResult authenticationResult) -
getCsrfToken
-
getCookies
-
getAuthenticationDetails
-
getCsrfURL
-
getSalesOrderSimulationRestTemplate
public org.springframework.web.client.RestTemplate getSalesOrderSimulationRestTemplate() -
setSalesOrderSimulationRestTemplate
public void setSalesOrderSimulationRestTemplate(org.springframework.web.client.RestTemplate salesOrderSimulationRestTemplate) -
getDestinationService
protected de.hybris.platform.apiregistryservices.services.DestinationService<ConsumedDestinationModel> getDestinationService() -
setDestinationService
public void setDestinationService(de.hybris.platform.apiregistryservices.services.DestinationService<ConsumedDestinationModel> destinationService) -
getSessionService
protected de.hybris.platform.servicelayer.session.SessionService getSessionService() -
setSessionService
public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
-