Package | Description |
---|---|
com.yahoo.jdisc |
Provides the common classes and interfaces of the jDISC core.
|
com.yahoo.jdisc.application |
Provides classes and interfaces for implementing an
Application . |
com.yahoo.jdisc.handler |
Provides classes and interfaces for implementing a
RequestHandler . |
com.yahoo.jdisc.service |
Provides classes and interfaces for implementing a
ClientProvider or
a ServerProvider . |
com.yahoo.jdisc.test |
Provides classes and interfaces for implementing unit tests of jDISC components.
|
Modifier and Type | Class and Description |
---|---|
class |
ReferencedResource<T extends SharedResource>
Utility class for working with reference-counted
SharedResource s. |
Modifier and Type | Interface and Description |
---|---|
interface |
Container
This is the immutable Container.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractResource
This class provides a thread-safe implementation of the
SharedResource interface, and should be used for
all subclasses of RequestHandler , ClientProvider and ServerProvider . |
class |
NoopSharedResource
An implementation of
SharedResource that does not do anything. |
(package private) class |
ProxyRequestHandler |
class |
Request
This class represents a single request (which may have any content model that a
ServerProvider chooses to
implement). |
Modifier and Type | Field and Description |
---|---|
(package private) SharedResource |
ProxyRequestHandler.ProxyResponseHandler.request |
(package private) SharedResource |
ProxyRequestHandler.ProxyContentChannel.request |
private T |
ReferencedResource.resource |
Modifier and Type | Method and Description |
---|---|
static ResourceReference |
References.fromResource(SharedResource resource)
|
Constructor and Description |
---|
ProxyCompletionHandler(SharedResource request,
CompletionHandler delegate) |
ProxyContentChannel(SharedResource request,
ContentChannel delegate) |
ProxyResponseHandler(SharedResource request,
ResponseHandler delegate) |
Modifier and Type | Class and Description |
---|---|
class |
ResourcePool
This is a utility class to help manage
SharedResource s while configuring a ContainerBuilder . |
Modifier and Type | Method and Description |
---|---|
<T extends SharedResource> |
ResourcePool.add(T t)
Adds the given
SharedResource to this ResourcePool. |
<T extends SharedResource> |
ResourcePool.get(Class<T> type)
Returns the appropriate instance for the given injection type.
|
<T extends SharedResource> |
ResourcePool.get(com.google.inject.Key<T> key)
Returns the appropriate instance for the given injection key.
|
<T extends SharedResource> |
ResourcePool.retain(T t)
Retains and adds the given
SharedResource to this ResourcePool. |
Modifier and Type | Interface and Description |
---|---|
interface |
RequestHandler
This interface defines a component that is capable of acting as a handler for a
Request . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractRequestHandler
This class provides an abstract
RequestHandler implementation with reasonable defaults for everything but
RequestHandler.handleRequest(Request, ResponseHandler) . |
class |
ThreadedRequestHandler
This class implements a
RequestHandler with a synchronous ThreadedRequestHandler.handleRequest(Request,
BufferedContentChannel, ResponseHandler) API for handling Request s. |
Modifier and Type | Interface and Description |
---|---|
interface |
ClientProvider
This interface defines a component that is capable of acting as a client to an external server.
|
interface |
ServerProvider
This interface defines a component that is capable of acting as a server for an external client.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractClientProvider
This is a convenient parent class for
ClientProvider with default implementations for all but the
essential RequestHandler.handleRequest(Request, ResponseHandler) method. |
class |
AbstractServerProvider
This is a convenient parent class for
ServerProvider with default implementations for all but the
essential ServerProvider.start() and ServerProvider.close() methods. |
Modifier and Type | Class and Description |
---|---|
class |
NonWorkingClientProvider |
class |
NonWorkingRequestHandler |
class |
NonWorkingServerProvider |
private static class |
ServerProviderConformanceTest.TestRequestHandler |
Copyright © 2018. All rights reserved.