Interface HttpResponse
- All Superinterfaces:
AutoCloseable,Closeable
Represents a HTTP response.
- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptionReturns the response entity as string.Returns the HTTP reason phase for thegetStatusCode().intReturns the HTTP status code for this response.
-
Method Details
-
getEntityAsString
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 thegetStatusCode().- Returns:
- the reason phrase
-