Uses of Class
com.yahoo.jdisc.Response
-
Packages that use Response Package Description com.yahoo.jdisc Provides the common classes and interfaces of the jDISC core.com.yahoo.jdisc.handler Provides classes and interfaces for implementing aRequestHandler
.com.yahoo.jdisc.test Provides classes and interfaces for implementing unit tests of jDISC components. -
-
Uses of Response in com.yahoo.jdisc
Methods in com.yahoo.jdisc that return Response Modifier and Type Method Description Response
Response. setError(java.lang.Throwable error)
Sets the error of this response.Response
Response. setStatus(int status)
Sets the status code of this response. -
Uses of Response in com.yahoo.jdisc.handler
Methods in com.yahoo.jdisc.handler that return Response Modifier and Type Method Description Response
CallableRequestDispatch. call()
Response
RequestDispatch. get()
Response
RequestDispatch. get(long timeout, java.util.concurrent.TimeUnit unit)
protected abstract Response
ResponseDispatch. newResponse()
Creates and returns theResponse
to dispatch.Methods in com.yahoo.jdisc.handler that return types with arguments of type Response Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<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.Methods in com.yahoo.jdisc.handler with parameters of type Response Modifier and Type Method Description ContentChannel
FutureResponse. handleResponse(Response response)
ContentChannel
RequestDispatch. handleResponse(Response response)
ContentChannel
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, java.lang.Iterable<java.nio.ByteBuffer> content)
Factory method for creating a ResponseDispatch over a givenResponse
and ByteBuffer content.static ResponseDispatch
ResponseDispatch. newInstance(Response response, java.nio.ByteBuffer... content)
Factory method for creating a ResponseDispatch over a givenResponse
and ByteBuffer content. -
Uses of Response in com.yahoo.jdisc.test
Methods in com.yahoo.jdisc.test that return types with arguments of type Response Modifier and Type Method Description java.util.concurrent.Future<Response>
TestDriver. dispatchRequest(java.lang.String requestUri, ResponseHandler responseHandler)
Convenience method to create aRequest
, connect it to aRequestHandler
, and close the returnedContentChannel
.Methods in com.yahoo.jdisc.test with parameters of type Response Modifier and Type Method Description ContentChannel
NonWorkingResponseHandler. handleResponse(Response response)
-