public abstract class AbstractODataResponse extends Object implements org.apache.olingo.client.api.communication.response.ODataResponse
| Modifier and Type | Field and Description |
|---|---|
protected ODataBatchController |
batchInfo
Batch info (if to be batched).
|
protected boolean |
hasBeenInitialized
Initialization check.
|
protected Map<String,Collection<String>> |
headers
Response headers.
|
protected org.apache.http.client.HttpClient |
httpClient
HTTP client.
|
protected static org.slf4j.Logger |
LOG
Logger.
|
protected org.apache.olingo.client.api.ODataClient |
odataClient |
protected InputStream |
payload
Response body/payload.
|
protected org.apache.http.HttpResponse |
res
HTTP response.
|
protected int |
statusCode
Response code.
|
protected String |
statusMessage
Response message.
|
| Constructor and Description |
|---|
AbstractODataResponse(org.apache.olingo.client.api.ODataClient odataClient,
org.apache.http.client.HttpClient httpclient,
org.apache.http.HttpResponse res) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getContentType() |
String |
getETag() |
Collection<String> |
getHeader(String name) |
Collection<String> |
getHeaderNames() |
InputStream |
getRawResponse() |
int |
getStatusCode() |
String |
getStatusMessage() |
org.apache.olingo.client.api.communication.response.ODataResponse |
initFromBatch(Map.Entry<Integer,String> responseLine,
Map<String,Collection<String>> headers,
org.apache.olingo.client.api.communication.request.batch.ODataBatchLineIterator batchLineIterator,
String boundary) |
org.apache.olingo.client.api.communication.response.ODataResponse |
initFromEnclosedPart(InputStream part) |
org.apache.olingo.client.api.communication.response.ODataResponse |
initFromHttpResponse(org.apache.http.HttpResponse res) |
protected static final org.slf4j.Logger LOG
protected final org.apache.olingo.client.api.ODataClient odataClient
protected final org.apache.http.client.HttpClient httpClient
protected final org.apache.http.HttpResponse res
protected final Map<String,Collection<String>> headers
protected int statusCode
protected String statusMessage
protected InputStream payload
protected boolean hasBeenInitialized
protected ODataBatchController batchInfo
public AbstractODataResponse(org.apache.olingo.client.api.ODataClient odataClient,
org.apache.http.client.HttpClient httpclient,
org.apache.http.HttpResponse res)
public Collection<String> getHeaderNames()
getHeaderNames in interface org.apache.olingo.client.api.communication.response.ODataResponsepublic Collection<String> getHeader(String name)
getHeader in interface org.apache.olingo.client.api.communication.response.ODataResponsepublic String getETag()
getETag in interface org.apache.olingo.client.api.communication.response.ODataResponsepublic String getContentType()
getContentType in interface org.apache.olingo.client.api.communication.response.ODataResponsepublic int getStatusCode()
getStatusCode in interface org.apache.olingo.client.api.communication.response.ODataResponsepublic String getStatusMessage()
getStatusMessage in interface org.apache.olingo.client.api.communication.response.ODataResponsepublic final org.apache.olingo.client.api.communication.response.ODataResponse initFromHttpResponse(org.apache.http.HttpResponse res)
initFromHttpResponse in interface org.apache.olingo.client.api.communication.response.ODataResponsepublic org.apache.olingo.client.api.communication.response.ODataResponse initFromBatch(Map.Entry<Integer,String> responseLine, Map<String,Collection<String>> headers, org.apache.olingo.client.api.communication.request.batch.ODataBatchLineIterator batchLineIterator, String boundary)
initFromBatch in interface org.apache.olingo.client.api.communication.response.ODataResponsepublic org.apache.olingo.client.api.communication.response.ODataResponse initFromEnclosedPart(InputStream part)
initFromEnclosedPart in interface org.apache.olingo.client.api.communication.response.ODataResponsepublic void close()
close in interface org.apache.olingo.client.api.communication.response.ODataResponsepublic InputStream getRawResponse()
getRawResponse in interface org.apache.olingo.client.api.communication.response.ODataResponseCopyright © 2013–2017 The Apache Software Foundation. All rights reserved.