public class ErrorResponse extends Object implements org.apache.olingo.client.api.communication.response.ODataResponse
Constructor and Description |
---|
ErrorResponse(int statusCode,
String statusMessage) |
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) |
public ErrorResponse(int statusCode, String statusMessage)
public Collection<String> getHeaderNames()
getHeaderNames
in interface org.apache.olingo.client.api.communication.response.ODataResponse
public Collection<String> getHeader(String name)
getHeader
in interface org.apache.olingo.client.api.communication.response.ODataResponse
public String getETag()
getETag
in interface org.apache.olingo.client.api.communication.response.ODataResponse
public String getContentType()
getContentType
in interface org.apache.olingo.client.api.communication.response.ODataResponse
public int getStatusCode()
getStatusCode
in interface org.apache.olingo.client.api.communication.response.ODataResponse
public String getStatusMessage()
getStatusMessage
in interface org.apache.olingo.client.api.communication.response.ODataResponse
public InputStream getRawResponse()
getRawResponse
in interface org.apache.olingo.client.api.communication.response.ODataResponse
public org.apache.olingo.client.api.communication.response.ODataResponse initFromHttpResponse(org.apache.http.HttpResponse res)
initFromHttpResponse
in interface org.apache.olingo.client.api.communication.response.ODataResponse
public 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.ODataResponse
public org.apache.olingo.client.api.communication.response.ODataResponse initFromEnclosedPart(InputStream part)
initFromEnclosedPart
in interface org.apache.olingo.client.api.communication.response.ODataResponse
public void close()
close
in interface org.apache.olingo.client.api.communication.response.ODataResponse
Copyright © 2010–2020. All rights reserved.