Uses of Class
com.yahoo.jdisc.Response
Package
Description
Provides the common classes and interfaces of the jDISC core.
Provides classes and interfaces for implementing a
RequestHandler
.Provides classes and interfaces for implementing unit tests of jDISC components.
-
Uses of Response in com.yahoo.jdisc
-
Uses of Response in com.yahoo.jdisc.handler
Modifier and TypeMethodDescriptionfinal Response
CallableRequestDispatch.call()
final Response
RequestDispatch.get()
final Response
protected abstract Response
ResponseDispatch.newResponse()
Creates and returns theResponse
to dispatch.Modifier and TypeMethodDescriptionfinal CompletableFuture<Response>
RequestDispatch.dispatch()
This method callsRequestDispatch.connect()
to establish aContentChannel
for theRequest
, and then iterates through all the ByteBuffers returned byRequestDispatch.requestContent()
and writes them to that ContentChannel.Modifier and TypeMethodDescriptionFutureResponse.handleResponse
(Response response) RequestDispatch.handleResponse
(Response response) ResponseHandler.handleResponse
(Response response) This method will process the givenResponse
and return aContentChannel
into which the caller can write the Response's content.static ResponseDispatch
ResponseDispatch.newInstance
(Response response, Iterable<ByteBuffer> content) Factory method for creating a ResponseDispatch over a givenResponse
and ByteBuffer content.static ResponseDispatch
ResponseDispatch.newInstance
(Response response, ByteBuffer... content) Factory method for creating a ResponseDispatch over a givenResponse
and ByteBuffer content. -
Uses of Response in com.yahoo.jdisc.test
Modifier and TypeMethodDescriptionTestDriver.dispatchRequest
(String requestUri, ResponseHandler responseHandler) Convenience method to create aRequest
, connect it to aRequestHandler
, and close the returnedContentChannel
.