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 a
RequestHandler . |
com.yahoo.jdisc.test |
Provides classes and interfaces for implementing unit tests of jDISC components.
|
Modifier and Type | Method and Description |
---|---|
Response |
Response.setError(Throwable error)
Sets the error of this response.
|
Response |
Response.setStatus(int status)
Sets the status code of this response.
|
Modifier and Type | Method and Description |
---|---|
ContentChannel |
ProxyRequestHandler.ProxyResponseHandler.handleResponse(Response response) |
ContentChannel |
ProxyRequestHandler.NullContentResponseHandler.handleResponse(Response response) |
Modifier and Type | Method and Description |
---|---|
Response |
CallableRequestDispatch.call() |
Response |
RequestDispatch.get() |
Response |
RequestDispatch.get(long timeout,
TimeUnit unit) |
protected abstract Response |
ResponseDispatch.newResponse()
Creates and returns the
Response to dispatch. |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<Response> |
RequestDispatch.dispatch()
This method calls
RequestDispatch.connect() to establish a ContentChannel for the Request , and then
iterates through all the ByteBuffers returned by RequestDispatch.requestContent() and writes them to that
ContentChannel. |
Modifier and Type | Method and Description |
---|---|
ContentChannel |
ResponseHandler.handleResponse(Response response)
This method will process the given
Response and return a ContentChannel into which the caller
can write the Response's content. |
ContentChannel |
RequestDispatch.handleResponse(Response response) |
ContentChannel |
FutureResponse.handleResponse(Response response) |
static ResponseDispatch |
ResponseDispatch.newInstance(Response response,
ByteBuffer... content)
Factory method for creating a ResponseDispatch over a given
Response and ByteBuffer content. |
static ResponseDispatch |
ResponseDispatch.newInstance(Response response,
Iterable<ByteBuffer> content)
Factory method for creating a ResponseDispatch over a given
Response and ByteBuffer content. |
Modifier and Type | Method and Description |
---|---|
Future<Response> |
TestDriver.dispatchRequest(String requestUri,
ResponseHandler responseHandler)
Convenience method to create a
Request , connect it to a RequestHandler , and close the returned
ContentChannel . |
Modifier and Type | Method and Description |
---|---|
ContentChannel |
NonWorkingResponseHandler.handleResponse(Response response) |
Copyright © 2018. All rights reserved.