If the context init parameter "org.mortbay.jetty.servlet.ManagedAttributes" is set to a coma separated list of names, then they are treated as context attribute names, which if set as attributes are passed to the servers Container so that they may be managed with JMX.
| Modifier and Type | Class and Description |
|---|---|
| public class | ContextHandler.SContext
Context. |
| Modifier and Type | Field and Description |
|---|---|
| private static ThreadLocal | |
| private boolean | |
| private boolean | |
| private AttributesMap | |
| private Resource | |
| private ClassLoader | |
| private boolean | |
| private Set | |
| private Object | |
| private AttributesMap | |
| private Object | |
| private String | |
| private String | |
| private ErrorHandler | |
| private EventListener[] | |
| private Map | |
| private Map | |
| private Logger | |
| private Set | |
| private int | |
| private MimeTypes | |
| private Object | |
| private Object | |
| protected ContextHandler. | |
| private boolean | |
| private String[] | |
| private String[] | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| protected | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| protected void | |
| protected void | |
| public boolean | Returns: the allowNullPathInfo true if /context is not redirected to /context/
|
| public Object | |
| public Enumeration | |
| public Attributes | |
| public Resource | |
| public ClassLoader | |
| public String | Returns: Returns the classLoader.Make best effort to extract a file classpath from the context classloader |
| public String[] | Returns: an array of connector names that this context will accept a request from.
|
| public String | |
| public static ContextHandler. | Returns: ServletContext implementationGet the current ServletContext implementation. |
| public String | |
| public ErrorHandler | |
| public EventListener[] | |
| public String[] | |
| public String | |
| public Enumeration | |
| public Map | |
| public String | Returns: aString representing the character encoding for
the locale or null if none found.a locale)Locale valueGet the character encoding for a locale. |
| public Logger | |
| public int | |
| public MimeTypes | |
| public Resource | |
| public String | |
| public Set | |
| public ContextHandler. | |
| public String[] | Returns: Array of virtual hosts that this context responds to. A null host name or empty array means any hostname is acceptable. Host names may be String representation of IP addresses. Host names may start with '*.' to wildcard one level of names.Get the virtual hosts for the context. |
| public String[] | Returns: The names of the files which the server should consider to be welcome files in this context.
|
| public void | handle(String
The target of the request - either a URI or a name. target, HttpServletRequest The request either as the request, HttpServletResponse Request
object or a wrapper of that request. The HttpConnection#getCurrentConnection()
method can be used access the Request object if required.The response as the response, int dispatch)Response
object or a wrapper of that request. The HttpConnection#getCurrentConnection()
method can be used access the Response object if required.Overrides org. Implements org. |
| public boolean | |
| public boolean | |
| protected boolean | |
| public boolean | |
| public synchronized Class | |
| public Resource | newResource(URL url)
Convert URL to Resource
wrapper for |
| public Resource | newResource(String url)
Convert URL to Resource
wrapper for |
| private String | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setCompactPath(boolean
True if URLs are compacted to replace multiple '/'s with a single '/' compactPath)
|
| public void | setConnectorNames(String[]
If non null, an array of connector names that this context
will accept a request from. connectors)Set the names of accepted connectors. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private void | |
| public void | |
| public void | |
| public void | |
| public void | setServer(Server server)
Overrides org. Implements org. |
| public void | setShutdown(boolean
true if this context is accepting new requests shutdown)Implements org. |
| public void | setVirtualHosts(String[]
Array of virtual hosts that this context responds to. A
null host name or null/empty array means any hostname is acceptable.
Host names may be String representation of IP addresses. Host names may
start with '*.' to wildcard one level of names. vhosts)Set the virtual hosts for the context. |
| public void | |
| protected void | |
| public String | toString()
Overrides org. |