Package org.apache.olingo.odata2.core
Class ODataResponseImpl
java.lang.Object
org.apache.olingo.odata2.api.processor.ODataResponse
org.apache.olingo.odata2.core.ODataResponseImpl
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.olingo.odata2.api.processor.ODataResponse
ODataResponse.ODataResponseBuilder -
Field Summary
Fields inherited from class org.apache.olingo.odata2.api.processor.ODataResponse
CHARSET_MATCHER_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the underlying entity input stream (if such a stream is available) and release all with this repsonse associated resources.booleancontainsHeader(String header) Case insensitive check if the header is available in this ODataResponsegetETag()Methods inherited from class org.apache.olingo.odata2.api.processor.ODataResponse
contentHeader, entity, fromResponse, getEntityAsStream, header, newBuilder, status
-
Constructor Details
-
ODataResponseImpl
public ODataResponseImpl()
-
-
Method Details
-
getStatus
- Specified by:
getStatusin classODataResponse- Returns:
- HTTP status code of this response
-
getEntity
- Specified by:
getEntityin classODataResponse- Returns:
- a response entity which becomes the body part of a response message
-
close
Description copied from class:ODataResponseClose the underlying entity input stream (if such a stream is available) and release all with this repsonse associated resources.- Specified by:
closein classODataResponse- Throws:
IOException- if something goes wrong during close ofODataResponse
-
getHeader
- Specified by:
getHeaderin classODataResponse- Parameters:
name- HTTP response header name- Returns:
- a header value or null if not set
-
getHeaderNames
- Specified by:
getHeaderNamesin classODataResponse- Returns:
- a set of all available header names
-
getIdLiteral
- Specified by:
getIdLiteralin classODataResponse- Returns:
- Location header value or null if not set
-
getETag
- Specified by:
getETagin classODataResponse- Returns:
- ETag header value or null if not available
-
getContentHeader
- Specified by:
getContentHeaderin classODataResponse- Returns:
- Content-Type header value or null if not set
-
containsHeader
Description copied from class:ODataResponseCase insensitive check if the header is available in this ODataResponse- Specified by:
containsHeaderin classODataResponse- Parameters:
header- header name- Returns:
- true/false
-