Uses of Class
org.apache.juneau.rest.client.RestResponse
Packages that use RestResponse
Package
Description
REST Client API
REST Server Mock API
-
Uses of RestResponse in org.apache.juneau.rest.client
Methods in org.apache.juneau.rest.client that return RestResponseModifier and TypeMethodDescription<T> RestResponse
Same asResponseHeader.as(Class)
but sets the value in a mutable for fluent calls.<T> RestResponse
Same asResponseHeader.as(Type,Type...)
but sets the value in a mutable for fluent calls.<T> RestResponse
Same asResponseHeader.as(ClassMeta)
but sets the value in a mutable for fluent calls.RestResponse.assertContent
(String value) Provides the ability to perform fluent-style assertions on this response body.RestResponse.assertContentMatches
(String value) Provides the ability to perform fluent-style assertions on this response body.RestResponse.assertStatus
(int value) Provides the ability to perform fluent-style assertions on the response status code.Same asBasicHeader.asString()
but sets the value in a mutable for fluent calls.RestResponse.cacheContent()
Caches the response body so that it can be read as a stream multiple times.RestRequest.complete()
Same asRestRequest.run()
but immediately callsconsume()
to clean up the response.RestResponse.consume()
Consumes the response body.protected RestResponse
RestClient.createResponse
(RestRequest request, HttpResponse httpResponse, Parser parser) Creates aRestResponse
object from the specifiedHttpResponse
object.Logs a message.Logs a message.ResponseContent.pipeTo
(OutputStream os) Pipes the contents of the response to the specified output stream.Pipes the contents of the response to the specified writer.Pipes the contents of the response to the specified writer.Pipes the contents of the response to the specified writer.Pipes the contents of the response to the specified writer.ResponseContent.response()
Returns the response that created this object.ResponseHeader.response()
Returns the response that created this object.ResponseStatusLine.response()
Returns the response that created this object.RestRequest.run()
Runs this request and returns the resulting response object.Methods in org.apache.juneau.rest.client that return types with arguments of type RestResponseModifier and TypeMethodDescriptionRestResponse.assertCharset()
Provides the ability to perform fluent-style assertions on the response character encoding.RestResponse.assertContent()
Provides the ability to perform fluent-style assertions on this response body.RestResponse.assertHeader
(String name) Provides the ability to perform fluent-style assertions on a response header.RestResponse.assertStatus()
Provides the ability to perform fluent-style assertions on the responseStatusLine
object.RestRequest.completeFuture()
Same asRestRequest.complete()
but allows you to run the call asynchronously.RestRequest.runFuture()
Same asRestRequest.run()
but allows you to run the call asynchronously.Methods in org.apache.juneau.rest.client with parameters of type RestResponseModifier and TypeMethodDescriptionprotected void
RestClient.onCallClose
(RestRequest req, RestResponse res) Interceptor method called immediately after the RestRequest object is created and all headers/query/form-data has been set on the request from the client.protected void
RestClient.onCallConnect
(RestRequest req, RestResponse res) Interceptor method called immediately after an HTTP response has been received.void
BasicRestCallInterceptor.onClose
(RestRequest req, RestResponse res) void
RestCallInterceptor.onClose
(RestRequest req, RestResponse res) Called when the response body is consumed.void
BasicRestCallInterceptor.onConnect
(RestRequest req, RestResponse res) void
RestCallInterceptor.onConnect
(RestRequest req, RestResponse res) Called immediately after an HTTP response has been received.Method parameters in org.apache.juneau.rest.client with type arguments of type RestResponseModifier and TypeMethodDescriptionRestClient.Builder.logRequests
(DetailLevel detail, Level level, BiPredicate<RestRequest, RestResponse> test) Log requests.Constructors in org.apache.juneau.rest.client with parameters of type RestResponseModifierConstructorDescriptionResponseContent
(RestClient client, RestRequest request, RestResponse response, Parser parser) Constructor.ResponseHeader
(String name, RestRequest request, RestResponse response, Header header) Constructor.protected
ResponseStatusLine
(RestResponse response, StatusLine inner) Constructor.RestCallException
(RestResponse response, Throwable cause, String message, Object... args) Constructor. -
Uses of RestResponse in org.apache.juneau.rest.mock
Subclasses of RestResponse in org.apache.juneau.rest.mockModifier and TypeClassDescriptionclass
A subclass ofRestResponse
with additional features for mocked testing.Method parameters in org.apache.juneau.rest.mock with type arguments of type RestResponseModifier and TypeMethodDescriptionMockRestClient.Builder.logRequests
(DetailLevel detail, Level level, BiPredicate<RestRequest, RestResponse> test)