Logo Search packages:      
Sourcecode: jetty version File versions  Download package

org::mortbay::jetty::servlet::WebApplicationContext Class Reference

Inheritance diagram for org::mortbay::jetty::servlet::WebApplicationContext:

org::mortbay::jetty::servlet::ServletHttpContext org::mortbay::http::HttpContext org::mortbay::util::Container org::mortbay::util::LifeCycle org::mortbay::http::HttpHandler org::mortbay::util::EventProvider org::mortbay::util::LifeCycle org::mortbay::util::EventProvider org::mortbay::util::LifeCycle

List of all members.

Detailed Description

Standard web.xml configured HttpContext.

This specialization of HttpContext uses the standardized web.xml to describe a web application and configure the handlers for the HttpContext.

If a file named web-jetty.xml or jetty-web.xml is found in the WEB-INF directory it is applied to the context using the XmlConfiguration format.

A single WebApplicationHandler instance is used to provide security, filter, sevlet and resource handling.

See also:
WebApplicationContext.java,v 1.136 2005/10/26 08:11:04 gregwilkins Exp
Greg Wilkins (gregw)

Definition at line 63 of file WebApplicationContext.java.

Public Member Functions

void addClassPath (String classPath)
void addClassPaths (Resource lib)
synchronized void addEventListener (EventListener listener) throws IllegalArgumentException
synchronized void addHandler (HttpHandler handler)
synchronized void addHandler (int i, HttpHandler handler)
void addLocaleEncoding (String locale, String encoding)
void addPermission (Permission permission)
void addSecurityConstraint (String pathSpec, SecurityConstraint sc)
synchronized ServletHolder addServlet (String name, String pathSpec, String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException
synchronized ServletHolder addServlet (String pathSpec, String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException
void addVirtualHost (String hostname)
void addWelcomeFile (String welcomeFile)
boolean checkSecurityConstraints (String pathInContext, HttpRequest request, HttpResponse response) throws HttpException, IOException
void clearSecurityConstraints ()
void destroy ()
Object enterContextScope (HttpRequest request, HttpResponse response)
void flushCache ()
Object getAttribute (String name)
Enumeration getAttributeNames ()
Map getAttributes ()
Authenticator getAuthenticator ()
Resource getBaseResource ()
synchronized ClassLoader getClassLoader ()
String getClassPath ()
Collection getComponents ()
String[] getConfigurationClassNames ()
Configuration[] getConfigurations ()
String getContextPath ()
String getDefaultsDescriptor ()
String getDisplayName ()
String getEncodingByMimeType (String type)
Map getEncodingMap ()
String getErrorPage (String error)
boolean getExtractWAR ()
String getFileClassPath () throws IllegalStateException
synchronized HttpHandler getHandler (Class handlerClass)
int getHandlerIndex (HttpHandler handler)
HttpHandler[] getHandlers ()
String[] getHosts ()
HttpConnection getHttpConnection ()
HttpContext getHttpContext ()
String getHttpContextName ()
HttpServer getHttpServer ()
String getInitParameter (String param)
Enumeration getInitParameterNames ()
String getLocaleEncoding (Locale locale)
int getMaxCachedFileSize ()
int getMaxCacheSize ()
String getMimeByExtension (String filename)
Map getMimeMap ()
String getName ()
ClassLoader getParentClassLoader ()
PermissionCollection getPermissions ()
UserRealm getRealm ()
String getRealmName ()
RequestLog getRequestLog ()
int getRequests ()
int getRequestsActive ()
int getRequestsActiveMax ()
Resource getResource (String uriInContext) throws IOException
String getResourceAlias (String alias)
Map getResourceAliases ()
String getResourceBase ()
ResourceMetaData getResourceMetaData (Resource resource)
int getResponses1xx ()
int getResponses2xx ()
int getResponses3xx ()
int getResponses4xx ()
int getResponses5xx ()
String[] getServerClasses ()
ServletContext getServletContext ()
synchronized ServletHandler getServletHandler ()
boolean getStatsOn ()
long getStatsOnMs ()
boolean getStopGracefully ()
String[] getSystemClasses ()
File getTempDirectory ()
String[] getVirtualHosts ()
String getWAR ()
WebApplicationHandler getWebApplicationHandler ()
Resource getWebInf () throws IOException
String getWelcomeFile (Resource resource) throws IOException
String[] getWelcomeFiles ()
void handle (HttpRequest request, HttpResponse response) throws HttpException, IOException
void handle (String pathInContext, String pathParams, HttpRequest httpRequest, HttpResponse httpResponse) throws HttpException, IOException
void initialize (HttpContext context)
boolean isClassLoaderJava2Compliant ()
boolean isDistributable ()
synchronized boolean isFailed ()
boolean isIgnoreWebJetty ()
boolean isRedirectNullPath ()
synchronized boolean isStarted ()
void leaveContextScope (HttpRequest request, HttpResponse response, Object oldScope)
synchronized Class loadClass (String className) throws ClassNotFoundException
void log (HttpRequest request, HttpResponse response, int length)
void readExternal (java.io.ObjectInput in) throws java.io.IOException, ClassNotFoundException
synchronized void removeAttribute (String name)
String removeErrorPage (String error)
synchronized void removeEventListener (EventListener listener)
synchronized void removeHandler (HttpHandler handler)
synchronized HttpHandler removeHandler (int i)
String removeResourceAlias (String alias)
void removeVirtualHost (String hostname)
void removeWelcomeFile (String welcomeFile)
void sendError (HttpResponse response, int code, String msg) throws IOException
synchronized void setAttribute (String name, Object value)
void setAttributes (Map attributes)
void setAuthenticator (Authenticator authenticator)
void setBaseResource (Resource base)
synchronized void setClassLoader (ClassLoader loader)
void setClassLoaderJava2Compliant (boolean compliant)
void setClassPath (String classPath)
void setConfigurationClassNames (String[] configurationClassNames)
void setContextPath (String contextPathSpec)
void setDefaultsDescriptor (String defaults)
void setDisplayName (String name)
void setDistributable (boolean distributable)
void setEncodingMap (Map encodingMap)
void setErrorPage (String error, String uriInContext)
void setExtractWAR (boolean extract)
void setHandlers (HttpHandler[] handlers)
void setHosts (String[] hosts) throws UnknownHostException
void setHttpContextName (String s)
void setIgnoreWebJetty (boolean b)
void setInitParameter (String param, String value)
void setMaxCachedFileSize (int maxCachedFileSize)
void setMaxCacheSize (int maxCacheSize)
void setMimeMap (Map mimeMap)
void setMimeMapping (String extension, String type)
synchronized void setParentClassLoader (ClassLoader loader)
void setPermissions (PermissionCollection permissions)
void setRealm (UserRealm realm)
void setRealmName (String realmName)
void setRedirectNullPath (boolean b)
void setRequestLog (RequestLog log)
void setResourceAlias (String alias, String uri)
void setResourceBase (String resourceBase)
void setServerClasses (String[] classes)
void setStatsOn (boolean on)
void setStopGracefully (boolean graceful)
void setSystemClasses (String[] classes)
void setTempDirectory (File dir)
void setTypeEncoding (String mimeType, String encoding)
void setVirtualHosts (String[] hosts)
void setWAR (String war)
void setWelcomeFiles (String[] welcomes)
synchronized final void start () throws Exception
void statsReset ()
synchronized final void stop () throws InterruptedException
void stop (boolean graceful) throws InterruptedException
String toString (boolean detail)
String toString ()
 WebApplicationContext (String webApp)
 WebApplicationContext ()
void writeExternal (java.io.ObjectOutput out) throws java.io.IOException

Static Public Member Functions

static String canonicalContextPathSpec (String contextPathSpec)
static void sendContextError (HttpResponse response, int code, String msg) throws IOException

Static Public Attributes

static final String __ErrorHandler
static final String __fileClassPathAttr

Protected Member Functions

void addComponent (Object o)
void configureClassPath () throws Exception
void configureDefaults () throws Exception
void configureWebApp () throws Exception
void doStart () throws Exception
void doStop () throws Exception
UserRealm getUserRealm (String name)
void initClassLoader (boolean forceContextLoader) throws MalformedURLException, IOException
void initialize () throws Exception
synchronized boolean isStarting ()
synchronized boolean isStopping ()
boolean jSecurityCheck (String pathInContext, HttpRequest request, HttpResponse response) throws IOException
Configuration[] loadConfigurations () throws Exception
void removeComponent (Object o)
void startHandlers () throws Exception

Package Functions

void setHttpServer (HttpServer httpServer)

Package Attributes

transient int _requests
transient int _requestsActive
transient int _requestsActiveMax
transient int _responses1xx
transient int _responses2xx
transient int _responses3xx
transient int _responses4xx
transient int _responses5xx
transient Object _statsLock = new Object[0]
transient long _statsStartedAt

Private Member Functions

void resolveWebApp () throws IOException

Private Attributes

String[] _configurationClassNames
Configuration[] _configurations
transient Object _contextListeners
String _defaultsDescriptor = "org/mortbay/jetty/servlet/webdefault.xml"
boolean _distributable
transient Map _errorPages
boolean _extract
boolean _ignorewebjetty
transient Map _resourceAliases
String _war
transient Resource _webApp
transient WebApplicationHandler _webAppHandler
transient Resource _webInf

Static Private Attributes

static Log log = LogFactory.getLog(WebApplicationContext.class)


interface  Configuration

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index