| Package | Description |
|---|---|
| com.hybris.ymkt.common.http | |
| com.hybris.ymkt.common.odata |
| Modifier and Type | Method and Description |
|---|---|
HttpURLConnectionResponse |
HttpURLConnectionService.execute(HttpURLConnectionRequest request)
This method execute a request and return a response.
No exception will be thrown as the caller is responsible to check the HttpURLConnectionResponse.getIOException(). |
protected void |
HttpURLConnectionService.logExecution(HttpURLConnectionRequest request,
HttpURLConnectionResponse response) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpURLConnectionResponse |
ODataService.executeWithBasicAuth(HttpURLConnectionRequest request)
Execute the request with Authorization : "Basic BASE64user:pass".
Using this method will create a new http session (unnecessary cost) on the yMKT side. It is preferable to use ODataService.executeWithRetry(HttpURLConnectionRequest) for most execution scenarios. |
HttpURLConnectionResponse |
ODataService.executeWithRetry(HttpURLConnectionRequest request)
Execute the request with "cookie" & "x-csrf-token".
If the existing session and/or token expired, those are refreshed and the request is re-tried. |
Copyright © 2018 SAP SE. All Rights Reserved.