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 | Class and Description |
---|---|
private static class |
ProxyRequestHandler.NullContentResponseHandler |
private static class |
ProxyRequestHandler.ProxyResponseHandler |
Modifier and Type | Field and Description |
---|---|
(package private) ResponseHandler |
ProxyRequestHandler.ProxyResponseHandler.delegate |
(package private) ResponseHandler |
ProxyRequestHandler.NullContentResponseHandler.delegate |
Modifier and Type | Method and Description |
---|---|
ContentChannel |
Request.connect(ResponseHandler responseHandler)
Attempts to resolve and connect to the
RequestHandler appropriate for the URI of this Request. |
static void |
Response.dispatchTimeout(ResponseHandler handler)
This is a convenience method for creating a Response with status
Response.Status.GATEWAY_TIMEOUT and passing
that to the given handleResponse(Response) . |
ContentChannel |
ProxyRequestHandler.handleRequest(Request request,
ResponseHandler responseHandler) |
void |
ProxyRequestHandler.handleTimeout(Request request,
ResponseHandler responseHandler) |
Constructor and Description |
---|
NullContentResponseHandler(ResponseHandler delegate) |
ProxyResponseHandler(SharedResource request,
ResponseHandler delegate) |
Modifier and Type | Class and Description |
---|---|
class |
CallableRequestDispatch
This is a convenient subclass of
RequestDispatch that implements the Callable interface. |
class |
FutureResponse
This class provides an implementation of
ResponseHandler that allows you to wait for a Response to
be returned. |
class |
RequestDispatch
This class provides a convenient way of safely dispatching a
Request . |
Modifier and Type | Field and Description |
---|---|
private ResponseHandler |
CallableResponseDispatch.handler |
private ResponseHandler |
FutureResponse.handler |
(package private) ResponseHandler |
ThreadedRequestHandler.RequestTask.responseHandler |
Modifier and Type | Method and Description |
---|---|
ContentChannel |
ResponseDispatch.connect(ResponseHandler responseHandler)
This methods calls
ResponseDispatch.newResponse() to create a new Response , and then calls handleResponse(Response) with that. |
FastContentWriter |
ResponseDispatch.connectFastWriter(ResponseHandler responseHandler)
Convenience method for constructing a
FastContentWriter over the ContentChannel returned by
calling ResponseDispatch.connect(ResponseHandler) . |
com.google.common.util.concurrent.ListenableFuture<Boolean> |
ResponseDispatch.dispatch(ResponseHandler responseHandler)
This method calls
ResponseDispatch.connect(ResponseHandler) to establish a ContentChannel for the Response , and then iterates through all the ByteBuffers returned by ResponseDispatch.responseContent() and writes them
to that ContentChannel. |
protected void |
ThreadedRequestHandler.handleRequest(Request request,
BufferedContentChannel requestContent,
ResponseHandler responseHandler)
Override this method if you want to access the
Request 's content using a BufferedContentChannel . |
protected void |
ThreadedRequestHandler.handleRequest(Request request,
ContentInputStream requestContent,
ResponseHandler responseHandler)
Implement this method if you want to access the
Request 's content using a ContentInputStream . |
protected void |
ThreadedRequestHandler.handleRequest(Request request,
ReadableContentChannel requestContent,
ResponseHandler responseHandler)
Implement this method if you want to access the
Request 's content using a ReadableContentChannel . |
ContentChannel |
ThreadedRequestHandler.handleRequest(Request request,
ResponseHandler responseHandler) |
ContentChannel |
RequestHandler.handleRequest(Request request,
ResponseHandler handler)
This method will process the given
Request and return a ContentChannel into which the caller
can write the Request's content. |
void |
RequestHandler.handleTimeout(Request request,
ResponseHandler handler)
This method is called by the
Container when a Request that was previously accepted by RequestHandler.handleRequest(Request, ResponseHandler) has timed out. |
void |
AbstractRequestHandler.handleTimeout(Request request,
ResponseHandler responseHandler) |
Constructor and Description |
---|
CallableResponseDispatch(ResponseHandler handler)
Constructs a new instances of this class over the given
ResponseHandler . |
FutureResponse(ResponseHandler handler)
Constructs a new FutureResponse that calls the given
ResponseHandler when FutureResponse.handleResponse(Response) is invoked. |
RequestTask(Request request,
BufferedContentChannel content,
ResponseHandler responseHandler) |
Modifier and Type | Class and Description |
---|---|
class |
NonWorkingResponseHandler |
Modifier and Type | Method and Description |
---|---|
ContentChannel |
TestDriver.connectRequest(String requestUri,
ResponseHandler responseHandler)
Convenience method to create and
Request.connect(ResponseHandler) a Request on the CurrentContainer . |
Future<Response> |
TestDriver.dispatchRequest(String requestUri,
ResponseHandler responseHandler)
Convenience method to create a
Request , connect it to a RequestHandler , and close the returned
ContentChannel . |
protected abstract ContentChannel |
ServerProviderConformanceTest.TestRequestHandler.handle(Request request,
ResponseHandler responseHandler) |
ContentChannel |
ServerProviderConformanceTest.TestRequestHandler.handleRequest(Request request,
ResponseHandler responseHandler) |
ContentChannel |
NonWorkingRequestHandler.handleRequest(Request request,
ResponseHandler handler) |
ContentChannel |
NonWorkingClientProvider.handleRequest(Request request,
ResponseHandler handler) |
void |
NonWorkingRequestHandler.handleTimeout(Request request,
ResponseHandler handler) |
void |
NonWorkingClientProvider.handleTimeout(Request request,
ResponseHandler handler) |
RequestDispatch |
TestDriver.newRequestDispatch(String requestUri,
ResponseHandler responseHandler)
|
protected void |
ServerProviderConformanceTest.TestRequestHandler.respondNoContent(ResponseHandler handler) |
protected void |
ServerProviderConformanceTest.TestRequestHandler.respondNoContentInOtherThread(ResponseHandler handler) |
protected void |
ServerProviderConformanceTest.TestRequestHandler.respondWithContent(ResponseHandler handler) |
protected void |
ServerProviderConformanceTest.TestRequestHandler.respondWithContentInOtherThread(ResponseHandler handler) |
Copyright © 2018. All rights reserved.