Class ODataResponseImpl

java.lang.Object
org.apache.olingo.odata2.api.processor.ODataResponse
org.apache.olingo.odata2.core.ODataResponseImpl

public class ODataResponseImpl extends ODataResponse
  • Constructor Details

    • ODataResponseImpl

      public ODataResponseImpl()
  • Method Details

    • getStatus

      public HttpStatusCodes getStatus()
      Specified by:
      getStatus in class ODataResponse
      Returns:
      HTTP status code of this response
    • getEntity

      public Object getEntity()
      Specified by:
      getEntity in class ODataResponse
      Returns:
      a response entity which becomes the body part of a response message
    • close

      public void close() throws IOException
      Description copied from class: ODataResponse
      Close the underlying entity input stream (if such a stream is available) and release all with this repsonse associated resources.
      Specified by:
      close in class ODataResponse
      Throws:
      IOException - if something goes wrong during close of ODataResponse
    • getHeader

      public String getHeader(String name)
      Specified by:
      getHeader in class ODataResponse
      Parameters:
      name - HTTP response header name
      Returns:
      a header value or null if not set
    • getHeaderNames

      public Set<String> getHeaderNames()
      Specified by:
      getHeaderNames in class ODataResponse
      Returns:
      a set of all available header names
    • getIdLiteral

      public String getIdLiteral()
      Specified by:
      getIdLiteral in class ODataResponse
      Returns:
      Location header value or null if not set
    • getETag

      public String getETag()
      Specified by:
      getETag in class ODataResponse
      Returns:
      ETag header value or null if not available
    • getContentHeader

      public String getContentHeader()
      Specified by:
      getContentHeader in class ODataResponse
      Returns:
      Content-Type header value or null if not set
    • containsHeader

      public boolean containsHeader(String header)
      Description copied from class: ODataResponse
      Case insensitive check if the header is available in this ODataResponse
      Specified by:
      containsHeader in class ODataResponse
      Parameters:
      header - header name
      Returns:
      true/false