Uses of Interface
com.yahoo.jdisc.handler.ContentChannel
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 ContentChannel in com.yahoo.jdisc
Modifier and TypeMethodDescriptionRequest.connect
(ResponseHandler responseHandler) Attempts to resolve and connect to theRequestHandler
appropriate for theURI
of this Request. -
Uses of ContentChannel in com.yahoo.jdisc.handler
Modifier and TypeClassDescriptionfinal class
This class implements an unlimited, non-blocking content queue.final class
This class provides a convenient implementation ofContentChannel
that does not support being written to.final class
This class implements aContentChannel
that has a blocking read interface.Modifier and TypeMethodDescriptionfinal ContentChannel
RequestDispatch.connect()
This methods callsRequestDispatch.newRequest()
to create a newRequest
, and then callsRequest.connect(ResponseHandler)
on that.final ContentChannel
ResponseDispatch.connect
(ResponseHandler responseHandler) This methods callsResponseDispatch.newResponse()
to create a newResponse
, and then callsResponseHandler.handleResponse(Response)
with that.RequestHandler.handleRequest
(Request request, ResponseHandler handler) This method will process the givenRequest
and return aContentChannel
into which the caller can write the Request's content.final ContentChannel
ThreadedRequestHandler.handleRequest
(Request request, ResponseHandler responseHandler) FutureResponse.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.Modifier and TypeMethodDescriptionvoid
BufferedContentChannel.connectTo
(ContentChannel content) Connects this BufferedContentChannel to a ContentChannel.ModifierConstructorDescriptionBlockingContentWriter
(ContentChannel content) Creates a new BlockingContentWriter that encapsulates a givenContentChannel
.Constructs a new FastContentOutputStream that writes into the givenContentChannel
.Creates a new FastContentWriter that encapsulates a givenContentChannel
.FutureResponse
(ContentChannel content) Constructs a new FutureResponse that returns the givenContentChannel
whenFutureResponse.handleResponse(Response)
is invoked. -
Uses of ContentChannel in com.yahoo.jdisc.test
Modifier and TypeMethodDescriptionTestDriver.connectRequest
(String requestUri, ResponseHandler responseHandler) Convenience method to create andRequest.connect(ResponseHandler)
aRequest
on theCurrentContainer
.NonWorkingClientProvider.handleRequest
(Request request, ResponseHandler handler) NonWorkingRequestHandler.handleRequest
(Request request, ResponseHandler handler) NonWorkingResponseHandler.handleResponse
(Response response)