net.dpml.http
Interface Server.Context

Enclosing interface:
Server

public static interface Server.Context

Component context through which the server configuration uri may be declared.


Method Summary
 URI getConfiguration(URI uri)
          Get the Jetty XML configuration uri.
 ThreadPool getThreadPool(ThreadPool pool)
          Get the assigned thread pool.
 

Method Detail

getConfiguration

public URI getConfiguration(URI uri)
Get the Jetty XML configuration uri. The configuration uri is used to establish the default server configuration prior to customization via the server context. If not supplied the server will be deployed relative to the supplied context.

Parameters:
uri - the default uri
Returns:
a uri referencing a Jetty configuration profile

getThreadPool

public ThreadPool getThreadPool(ThreadPool pool)
Get the assigned thread pool. If no thread pool is assigned by the deployment scenario a default pool will be established using the thread pool assigned in the component internal parts.

Parameters:
pool - the default value
Returns:
the resolved thread pool