Interface HttpResponse

All Superinterfaces:
AutoCloseable, Closeable

public interface HttpResponse extends Closeable
Represents a HTTP response.
Author:
Holger Eichelberger, SSE
  • Method Details

    • getEntityAsString

      String getEntityAsString() throws IOException
      Returns the response entity as string.
      Returns:
      the response entity as string
      Throws:
      IOException - if accessing the response fails
    • getStatusCode

      int getStatusCode()
      Returns the HTTP status code for this response.
      Returns:
      the status code
    • getReasonPhrase

      String getReasonPhrase()
      Returns the HTTP reason phase for the getStatusCode().
      Returns:
      the reason phrase