Class SalesOrderSimulationOutboundRequestImpl
- java.lang.Object
-
- de.hybris.platform.sap.sapsalesordersimulation.service.impl.SalesOrderSimulationOutboundRequestImpl
-
- All Implemented Interfaces:
SalesOrderSimulationOutboundRequest
public class SalesOrderSimulationOutboundRequestImpl extends java.lang.Object implements SalesOrderSimulationOutboundRequest
-
-
Constructor Summary
Constructors Constructor Description SalesOrderSimulationOutboundRequestImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.http.HttpHeaderscreateHTTPHeader(AuthenticationResult authenticationResult)protected AuthenticationResultgetAuthenticationDetails(ConsumedDestinationModel destinationModel)protected java.lang.StringgetCookies(org.springframework.http.HttpHeaders headers)protected java.lang.StringgetCsrfToken(org.springframework.http.HttpHeaders headers)protected de.hybris.platform.apiregistryservices.services.DestinationService<ConsumedDestinationModel>getDestinationService()SalesOrderSimulationDatagetResponseFromSalesOrderSimulation(SalesOrderSimulationRequestData requestData)Get the response from the API passing the requestData.org.springframework.web.client.RestTemplategetSalesOrderSimulationRestTemplate()protected de.hybris.platform.servicelayer.session.SessionServicegetSessionService()protected org.springframework.http.ResponseEntity<SalesOrderSimulationData>postSimulationRequest(java.lang.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)
-
-
-
Method Detail
-
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(java.lang.String url, SalesOrderSimulationRequestData requestData, org.springframework.http.HttpHeaders header)
-
createHTTPHeader
protected org.springframework.http.HttpHeaders createHTTPHeader(AuthenticationResult authenticationResult)
-
getCsrfToken
protected java.lang.String getCsrfToken(org.springframework.http.HttpHeaders headers)
-
getCookies
protected java.lang.String getCookies(org.springframework.http.HttpHeaders headers)
-
getAuthenticationDetails
protected AuthenticationResult getAuthenticationDetails(ConsumedDestinationModel destinationModel)
-
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)
-
-