Uses of Class
com.hybris.ymkt.common.http.HttpURLConnectionRequest
-
Packages that use HttpURLConnectionRequest Package Description com.hybris.ymkt.common.http com.hybris.ymkt.common.odata -
-
Uses of HttpURLConnectionRequest in com.hybris.ymkt.common.http
Methods in com.hybris.ymkt.common.http with parameters of type HttpURLConnectionRequest Modifier and Type Method Description HttpURLConnectionResponseHttpURLConnectionService. execute(HttpURLConnectionRequest request)This method execute a request and return a response.
No exception will be thrown as the caller is responsible to check theHttpURLConnectionResponse.getIOException().protected voidHttpURLConnectionService. logExecution(HttpURLConnectionRequest request, HttpURLConnectionResponse response) -
Uses of HttpURLConnectionRequest in com.hybris.ymkt.common.odata
Methods in com.hybris.ymkt.common.odata with parameters of type HttpURLConnectionRequest Modifier and Type Method Description protected HttpURLConnectionResponseODataService. 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 useODataService.executeWithRetry(HttpURLConnectionRequest)for most execution scenarios.HttpURLConnectionResponseODataService. 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.
-