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.clientMethods in org.apache.juneau.rest.client that return RestResponseModifier and TypeMethodDescription<T> RestResponseSame asResponseHeader.as(Class)but sets the value in a mutable for fluent calls.<T> RestResponseSame asResponseHeader.as(Type,Type...)but sets the value in a mutable for fluent calls.<T> RestResponseSame 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 RestResponseRestClient.createResponse(RestRequest request, HttpResponse httpResponse, Parser parser) Creates aRestResponseobject from the specifiedHttpResponseobject.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 responseStatusLineobject.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 voidRestClient.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 voidRestClient.onCallConnect(RestRequest req, RestResponse res) Interceptor method called immediately after an HTTP response has been received.voidBasicRestCallInterceptor.onClose(RestRequest req, RestResponse res) voidRestCallInterceptor.onClose(RestRequest req, RestResponse res) Called when the response body is consumed.voidBasicRestCallInterceptor.onConnect(RestRequest req, RestResponse res) voidRestCallInterceptor.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.protectedResponseStatusLine(RestResponse response, StatusLine inner) Constructor.RestCallException(RestResponse response, Throwable cause, String message, Object... args) Constructor.
- 
Uses of RestResponse in org.apache.juneau.rest.mockSubclasses of RestResponse in org.apache.juneau.rest.mockModifier and TypeClassDescriptionclassA subclass ofRestResponsewith 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)