org.mortbay.jetty.servlet
public class WebApplicationContext extends ServletHttpContext implements Externalizable
Version: $Id: WebApplicationContext.java,v 1.136 2005/10/26 08:11:04 gregwilkins Exp $
See Also: WebApplicationHandler
Nested Class Summary | |
---|---|
static interface | WebApplicationContext.Configuration Base Class for WebApplicationContext Configuration.
|
Constructor Summary | |
---|---|
WebApplicationContext() Constructor. | |
WebApplicationContext(String webApp) Constructor. |
Method Summary | |
---|---|
void | addEventListener(EventListener listener) |
protected void | configureClassPath() |
protected void | configureDefaults() |
protected void | configureWebApp() |
void | destroy() |
protected void | doStart() Start the Web Application. |
protected void | doStop() Stop the web application.
|
String[] | getConfigurationClassNames() |
WebApplicationContext.Configuration[] | getConfigurations() |
String | getDefaultsDescriptor() |
String | getDisplayName() |
String | getErrorPage(String error) get error page URI. |
boolean | getExtractWAR() |
Resource | getResource(String uriInContext) |
String | getResourceAlias(String alias) |
Map | getResourceAliases() |
ServletHandler | getServletHandler() Get the context ServletHandler.
|
protected UserRealm | getUserRealm(String name) |
String | getWAR() |
WebApplicationHandler | getWebApplicationHandler() |
Resource | getWebInf() |
void | handle(String pathInContext, String pathParams, HttpRequest httpRequest, HttpResponse httpResponse) |
protected void | initialize()
Initialize is called by the start method after the contexts classloader
has been initialied, but before the defaults descriptor has been applied.
|
boolean | isDistributable() |
boolean | isIgnoreWebJetty() |
protected WebApplicationContext.Configuration[] | loadConfigurations() |
void | readExternal(ObjectInput in) |
String | removeErrorPage(String error) |
void | removeEventListener(EventListener listener) |
String | removeResourceAlias(String alias) |
void | setConfigurationClassNames(String[] configurationClassNames) |
void | setDefaultsDescriptor(String defaults) Set the defaults web.xml file.
|
void | setDisplayName(String name) |
void | setDistributable(boolean distributable) |
void | setErrorPage(String error, String uriInContext) set error page URI. |
void | setExtractWAR(boolean extract) |
void | setIgnoreWebJetty(boolean b) |
void | setPermissions(PermissionCollection permissions) |
void | setResourceAlias(String alias, String uri) Set Resource Alias.
|
void | setWAR(String war) |
String | toString() |
void | writeExternal(ObjectOutput out) |
Parameters: webApp The Web application directory or WAR file.
Throws: IOException
Throws: InterruptedException
Parameters: error A string representing an error code or a exception classname
Returns: URI within context
Returns: WebApplicationHandler
Throws: Exception if an error occurs
Parameters: defaults File, Resource, URL or null.
Parameters: error A string representing an error code or a exception classname uriInContext
Parameters: extract If true, a WAR is extracted to a temporary directory before being deployed.
Parameters: b If TRUE, web-jetty.xml and jetty-web.xml configuration files are ignored.
Parameters: alias uri
Parameters: war Filename or URL of the web application directory or WAR file.