public class AsyncRequestWrapperImpl<R extends org.apache.olingo.client.api.communication.response.ODataResponse> extends AbstractRequest implements org.apache.olingo.client.api.communication.request.AsyncRequestWrapper<R>
| Modifier and Type | Class and Description |
|---|---|
class |
AsyncRequestWrapperImpl.AsyncResponseWrapperImpl |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.client.HttpClient |
httpClient
HTTP client.
|
protected static int |
MAX_RETRY |
protected org.apache.olingo.client.api.ODataClient |
odataClient |
protected org.apache.olingo.client.api.communication.request.ODataRequest |
odataRequest
Request to be wrapped.
|
protected org.apache.http.client.methods.HttpUriRequest |
request
HTTP request.
|
protected URI |
uri
Target URI.
|
LOG| Modifier | Constructor and Description |
|---|---|
protected |
AsyncRequestWrapperImpl(org.apache.olingo.client.api.ODataClient odataClient,
org.apache.olingo.client.api.communication.request.ODataRequest odataRequest) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.olingo.client.api.communication.request.AsyncRequestWrapper<R> |
callback(URI url) |
protected org.apache.http.HttpResponse |
checkMonitor(URI location) |
protected org.apache.http.HttpResponse |
doExecute() |
org.apache.olingo.client.api.communication.response.AsyncResponseWrapper<R> |
execute() |
protected org.apache.http.HttpResponse |
executeHttpRequest(org.apache.http.client.HttpClient client,
org.apache.http.client.methods.HttpUriRequest req) |
protected void |
extendHeader(String headerName,
String headerValue) |
org.apache.olingo.client.api.communication.request.AsyncRequestWrapper<R> |
wait(int waitInSeconds) |
checkRequest, checkResponseprotected static final int MAX_RETRY
protected final org.apache.olingo.client.api.ODataClient odataClient
protected final org.apache.olingo.client.api.communication.request.ODataRequest odataRequest
protected final org.apache.http.client.HttpClient httpClient
protected final org.apache.http.client.methods.HttpUriRequest request
protected final URI uri
protected AsyncRequestWrapperImpl(org.apache.olingo.client.api.ODataClient odataClient,
org.apache.olingo.client.api.communication.request.ODataRequest odataRequest)
public final org.apache.olingo.client.api.communication.request.AsyncRequestWrapper<R> wait(int waitInSeconds)
wait in interface org.apache.olingo.client.api.communication.request.AsyncRequestWrapper<R extends org.apache.olingo.client.api.communication.response.ODataResponse>public final org.apache.olingo.client.api.communication.request.AsyncRequestWrapper<R> callback(URI url)
callback in interface org.apache.olingo.client.api.communication.request.AsyncRequestWrapper<R extends org.apache.olingo.client.api.communication.response.ODataResponse>public org.apache.olingo.client.api.communication.response.AsyncResponseWrapper<R> execute()
execute in interface org.apache.olingo.client.api.communication.request.AsyncRequestWrapper<R extends org.apache.olingo.client.api.communication.response.ODataResponse>protected org.apache.http.HttpResponse doExecute()
protected final org.apache.http.HttpResponse checkMonitor(URI location)
protected final org.apache.http.HttpResponse executeHttpRequest(org.apache.http.client.HttpClient client,
org.apache.http.client.methods.HttpUriRequest req)
Copyright © 2013–2017 The Apache Software Foundation. All rights reserved.