public class PlusWebAppContext extends WebApplicationContext
Modifier and Type | Class and Description |
---|---|
static class |
PlusWebAppContext.Configuration |
__ErrorHandler, __fileClassPathAttr
Constructor and Description |
---|
PlusWebAppContext()
Constructor.
|
PlusWebAppContext(java.lang.String webApp)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addEnvEntry(java.lang.String name,
java.lang.Object value)
Add a java:comp/env entry.
|
void |
doStart()
Start the Web Application.
|
void |
doStop()
Stop the web application.
|
java.util.Map |
getENC()
Get a mapping of java:comp/env bindings for this webapp context.
|
java.lang.Object |
getEnvEntry(java.lang.String name) |
boolean |
getWebXmlEnvEntryOverride() |
void |
handle(HttpRequest request,
HttpResponse response)
Handler request.
|
protected void |
initClassLoader(boolean forceContextLoader)
Initialize the context classloader.
|
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.
|
void |
setWebXmlEnvEntryOverride(boolean value) |
addEventListener, configureClassPath, configureDefaults, configureWebApp, destroy, getConfigurationClassNames, getConfigurations, getDefaultsDescriptor, getDisplayName, getErrorPage, getExtractWAR, getResource, getResourceAlias, getResourceAliases, getServletHandler, getUserRealm, getWAR, getWebApplicationHandler, getWebInf, handle, isDistributable, isIgnoreWebJetty, loadConfigurations, readExternal, removeErrorPage, removeEventListener, removeResourceAlias, setConfigurationClassNames, setDefaultsDescriptor, setDisplayName, setDistributable, setErrorPage, setExtractWAR, setIgnoreWebJetty, setPermissions, setResourceAlias, setWAR, toString, writeExternal
addLocaleEncoding, addServlet, addServlet, checkSecurityConstraints, enterContextScope, getLocaleEncoding, getServletContext, jSecurityCheck, sendError
addClassPath, addClassPaths, addHandler, addHandler, addPermission, addSecurityConstraint, addVirtualHost, addWelcomeFile, canonicalContextPathSpec, clearSecurityConstraints, flushCache, getAttribute, getAttributeNames, getAttributes, getAuthenticator, getBaseResource, getClassLoader, getClassPath, getContextPath, getEncodingByMimeType, getEncodingMap, getFileClassPath, getHandler, getHandlerIndex, getHandlers, getHosts, getHttpConnection, getHttpContext, getHttpContextName, getHttpServer, getInitParameter, getInitParameterNames, getMaxCachedFileSize, getMaxCacheSize, getMimeByExtension, getMimeMap, getName, getParentClassLoader, getPermissions, getRealm, getRealmName, getRequestLog, getRequests, getRequestsActive, getRequestsActiveMax, getResourceBase, getResourceMetaData, getResponses1xx, getResponses2xx, getResponses3xx, getResponses4xx, getResponses5xx, getServerClasses, getStatsOn, getStatsOnMs, getStopGracefully, getSystemClasses, getTempDirectory, getVirtualHosts, getWelcomeFile, getWelcomeFiles, initialize, isClassLoaderJava2Compliant, isRedirectNullPath, leaveContextScope, loadClass, log, removeAttribute, removeHandler, removeHandler, removeVirtualHost, removeWelcomeFile, sendContextError, setAttribute, setAttributes, setAuthenticator, setBaseResource, setClassLoader, setClassLoaderJava2Compliant, setClassPath, setContextPath, setEncodingMap, setHandlers, setHosts, setHttpContextName, setInitParameter, setMaxCachedFileSize, setMaxCacheSize, setMimeMap, setMimeMapping, setParentClassLoader, setRealm, setRealmName, setRedirectNullPath, setRequestLog, setResourceBase, setServerClasses, setStatsOn, setStopGracefully, setSystemClasses, setTempDirectory, setTypeEncoding, setVirtualHosts, setWelcomeFiles, startHandlers, statsReset, stop, toString
addComponent, getComponents, isFailed, isStarted, isStarting, isStopping, removeComponent, start, stop
public PlusWebAppContext()
java.io.IOException
public PlusWebAppContext(java.lang.String webApp)
webApp
- The Web application directory or WAR file.java.io.IOException
public void setWebXmlEnvEntryOverride(boolean value)
public boolean getWebXmlEnvEntryOverride()
public void addEnvEntry(java.lang.String name, java.lang.Object value)
public java.lang.Object getEnvEntry(java.lang.String name)
public java.util.Map getENC() throws javax.naming.NamingException
javax.naming.NamingException
public void doStart() throws java.lang.Exception
WebApplicationContext
doStart
in class WebApplicationContext
java.lang.Exception
public void handle(HttpRequest request, HttpResponse response) throws HttpException, java.io.IOException
HttpContext
handle
in class HttpContext
HttpException
java.io.IOException
protected void initialize() throws java.lang.Exception
WebApplicationContext
initialize
in class WebApplicationContext
java.lang.Exception
- if an error occursprotected void initClassLoader(boolean forceContextLoader) throws java.net.MalformedURLException, java.io.IOException
HttpContext
initClassLoader
in class HttpContext
forceContextLoader
- If true, a ContextLoader is always if
no loader has been set.java.net.MalformedURLException
java.io.IOException
public void doStop() throws java.lang.Exception
WebApplicationContext
doStop
in class WebApplicationContext
java.lang.Exception
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.