Application
developers that require simple access to the most
commonly used jDISC APIs.ClientApplication
developers.ClientProvider
with default implementations for all but the
essential RequestHandler.handleRequest(Request, ResponseHandler)
method.RequestHandler
implementation with reasonable defaults for everything but
RequestHandler.handleRequest(Request, ResponseHandler)
.SharedResource
interface, and should be used for
all subclasses of RequestHandler
, ClientProvider
and ServerProvider
.ServerProvider
with default implementations for all but the
essential ServerProvider.start()
and ServerProvider.close()
methods.BindingSet
that contains the bindings of this BindingRepository.Container
based on the provided ContainerBuilder
.SharedResource
to this ResourcePool.ContainerBuilder
through
the ContainerBuilder.setAppContext(Object)
method.Application
loaded by this TestDriver.Application
has been configured.ReadableContentChannel.read()
without blocking.UriPattern
from the given pattern string, and calls BindingRepository.put(UriPattern, Object)
.BindingRepository.bind(String, Object)
for all entries in a collection of bindings.BindingSet.match(URI)
operation.URI
that has no binding.UriPattern
s to some target type T.UriPattern
s to some target type T.BindingSet
that was not found.BindingSet
was not found.BindingSet
that was not found.CurrentContainer
to assign a BindingSet
to a
newly created Container
based on the given URI
.ContentChannel
.ContentChannel
.BootstrapLoader
used by this TestDriver.OsgiFramework.installBundle(String)
if installation failed.RequestDispatch
that implements the Callable
interface.ResponseDispatch
that implements the Callable
interface.ResponseHandler
.Application
interface, and is intended to be used with the ClientDriver
to implement stand-alone client applications on top of jDISC.ClientApplication
.ContentChannel
and waits for the operation to complete.ContentChannel
.CurrentContainer.newReference(URI)
.Application
.ClientApplication
.RequestHandler
.ClientProvider
or
a ServerProvider
.RequestDispatch.newRequest()
to create a new Request
, and then calls Request.connect(ResponseHandler)
on that.ResponseDispatch.newResponse()
to create a new Response
, and then calls ResponseHandler.handleResponse(Response)
with that.RequestHandler
appropriate for the URI
of this Request.FastContentWriter
over the ContentChannel
returned by
calling RequestDispatch.connect()
.FastContentWriter
over the ContentChannel
returned by
calling ResponseDispatch.connect(ResponseHandler)
.Request.connect(ResponseHandler)
a Request
on the CurrentContainer
.MetricConsumer
of this.Container
for which this Request was created.Container
of a jDISC application.Container
.Thread
to allow for internal jDISC optimizations.ThreadFactory
interface on top of a Provider
for MetricConsumer
instances.UnsafeContentInputStream
and adds a finalizer to it that calls UnsafeContentInputStream.close()
.ReadableContentChannel
.MetricConsumer
-specific Metric.Context
object that encapsulates the given properties.Container
.Container
which has been deactivated.ApplicationLoader
after first calling Application.stop()
, and all previous
DeactivatedContainer
s have terminated.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.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.Request
, connect it to a RequestHandler
, and close the returned
ContentChannel
.Response.Status.GATEWAY_TIMEOUT
and passing
that to the given ResponseHandler.handleResponse(Response)
.CompletionHandler.failed(Throwable)
on all pending CompletionHandler
s, and
blocks all future operations to this ContentChannel (i.e.AbstractContentOutputStream
, and forwards all write() and close() calls to a FastContentWriter
.ContentChannel
.FastContentWriter
.ContentChannel
.ContentChannel
.CompletionHandler
that allows you to wait for either FutureCompletion.completed()
or FutureCompletion.failed(Throwable)
to be called.ResponseHandler
that allows you to wait for a Response
to
be returned.NullContent
when FutureResponse.handleResponse(Response)
is
invoked.ContentChannel
when FutureResponse.handleResponse(Response)
is invoked.ResponseHandler
when FutureResponse.handleResponse(Response)
is invoked.BindingMatch
, or null if none has been resolved yet.Request
s.TimeoutManager
of this request, or null if none has been assigned.Container
to resolve the appropriate RequestHandler
for this Request.Module
s.Request
and return a ContentChannel
into which the caller
can write the Request's content.Request
's content using a BufferedContentChannel
.Request
's content using a ReadableContentChannel
.Request
's content using a ContentInputStream
.Response
and return a ContentChannel
into which the caller
can write the Response's content.Container
when a Request
that was previously accepted by RequestHandler.handleRequest(Request, ResponseHandler)
has timed out.BufferedContentChannel.connectTo(ContentChannel)
has been called.ServerProvider
.BindingRepository.bind(String, Object)
) the
given URI
, and returns a BindingMatch
object that describes the match and contains the
matched target.URI
to this pattern.MetricConsumer
.Metric.set(String, Number, Context)
and Metric.add(String, Number, Context)
methods.Metric
interface.ContainerBuilder
object that has the necessary references to the
application and its internal components.Application
.Application
.Application
, but without OSGi support.Application
, but without OSGi support.Response
that has the given status code, and
ByteBuffer content.Response
that has the given status code, and
collection of ByteBuffer content.Response
and ByteBuffer content.Response
and ByteBuffer content.OsgiFramework
that throws UnsupportedOperationException
if OsgiFramework.installBundle(String)
or OsgiFramework.startBundles(List, boolean)
is called.OsgiFramework
.Container
.Request
to dispatch.Response
to dispatch.Application
implementation.Application
implementation, but without OSGi support.BindingSet
was selected for a given URI
.URI
for which there was
no BindingSet
selected.ResourceReference
that does nothing.SharedResource
that does not do anything.Runnable
to execute once this DeactivatedContainer has terminated.ContentChannel
that does not support being written to.OsgiFramework
created by this TestDriver.UriPattern
.HeaderFields.put(String, List)
with a singleton list that contains the specified
value.BindingRepository.put(UriPattern, Object)
for all entries in a collection of
bindings.ContentChannel
that has a blocking read interface.SharedResource
s.SharedResource
s and ResourceReference
s.Request
that was denied.ServerProvider
chooses to
implement).RequestDispatch.dispatch()
method should write to the Request
once it has connected
.Request
was rejected by the corresponding ClientProvider
or RequestHandler
.Request
.Request
.BindingRepository.bind(String, Object)
) the
given URI
, and returns that target.RequestHandler
in the current server- (if Request.isServerRequest()
is
true) or client- (if Request.isServerRequest()
is false) BindingSet
that
matches the given URI
.SharedResource
s while configuring a ContainerBuilder
.ContainerBuilder
.SharedResource
.RequestHandler
chooses
to implement) of some single request.ResponseDispatch.dispatch(ResponseHandler)
method should write to the
Response
once it has connected
.Response
.Response
.SharedResource
to this ResourcePool.ClientApplication
.ClientApplication
class.ClientApplication
class with OSGi support.ServerProvider
s.BindingMatch
of this Request.ServerProvider
.Request
s.ResponseHandler.handleResponse(Response)
must have been made.TimeoutManager
to be called when Request.setTimeout(long, TimeUnit)
is invoked.Container
to resolve the appropriate RequestHandler
for this Request.ApplicationLoader
just after creating this Application instance.Bundle
s.ApplicationLoader
after the corresponding signal has been issued by the
controlling start script.RequestHandler
with a synchronous ThreadedRequestHandler.handleRequest(Request,
BufferedContentChannel, ResponseHandler)
API for handling Request
s.Request.setTimeout(long, TimeUnit)
is invoked.Container
.ReadableContentChannel
and connects
to it.ContentInputStream
and connects
to its internal
ContentChannel.ContentInputStream
that wraps this ReadableContentChannel.ReadableContentChannel
to an InputStream.ReadableContentChannel
.URI
that has no binding.URI
for which there was no BindingSet
selected.URI
s.UriPattern.match(URI)
operation.ContentChannel
and waits for the operation to complete.ByteBuffer
to be written to the content corresponding to this ContentChannel.FastContentWriter.write(ByteBuffer)
.FastContentWriter.write(java.nio.ByteBuffer)
.FastContentWriter.write(java.nio.ByteBuffer)
.ContentChannel
.Copyright © 2018. All rights reserved.