Package org.apache.juneau.http
Interface HttpStatusLine
- All Known Implementing Classes:
HttpStatusLineBean
public interface HttpStatusLine
The first line of an HTTP response message, containing the protocol version, status code, and reason phrase.
Mirrors the semantics of org.apache.http.StatusLine without the Apache HttpCore dependency.
The default immutable implementation is HttpStatusLineBean.
See Also:
- Since:
- 9.2.1
-
Method Summary
Modifier and TypeMethodDescriptionReturns the HTTP protocol version (e.g.Returns the human-readable reason phrase (e.g.intReturns the HTTP status code (e.g.
-
Method Details
-
getStatusCode
int getStatusCode()Returns the HTTP status code (e.g.200,404).- Returns:
- The status code.
-
getReasonPhrase
Returns the human-readable reason phrase (e.g."OK","Not Found"), ornull if absent.- Returns:
- The reason phrase, possibly
null .
-
getProtocolVersion
Returns the HTTP protocol version (e.g.HttpProtocolVersion.HTTP_1_1).- Returns:
- The protocol version. Never
null .
-