Package org.apache.juneau.rest.client
Class ResponseStatusLine
java.lang.Object
org.apache.juneau.rest.client.ResponseStatusLine
- All Implemented Interfaces:
StatusLine
-
Constructor Summary
ModifierConstructorDescriptionprotected
ResponseStatusLine
(RestResponse response, StatusLine inner) Constructor. -
Method Summary
-
Constructor Details
-
ResponseStatusLine
Constructor.- Parameters:
response
- The response that created this object.inner
- The status line returned by the underlying client.
-
-
Method Details
-
getProtocolVersion
- Specified by:
getProtocolVersion
in interfaceStatusLine
-
getStatusCode
- Specified by:
getStatusCode
in interfaceStatusLine
-
getReasonPhrase
- Specified by:
getReasonPhrase
in interfaceStatusLine
-
assertValue
Provides the ability to perform fluent-style assertions on this response status line.Examples:
// Validates the content type header is provided. client .get(URI ) .run() .getStatusLine().assertValue().asCode().is(200);- Returns:
- A new fluent assertion object.
-
response
Returns the response that created this object.- Returns:
- The response that created this object.
-
toString
-