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, writeExternaladdLocaleEncoding, addServlet, addServlet, checkSecurityConstraints, enterContextScope, getLocaleEncoding, getServletContext, jSecurityCheck, sendErroraddClassPath, 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, toStringaddComponent, getComponents, isFailed, isStarted, isStarting, isStopping, removeComponent, start, stoppublic PlusWebAppContext()
java.io.IOExceptionpublic PlusWebAppContext(java.lang.String webApp)
webApp - The Web application directory or WAR file.java.io.IOExceptionpublic 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.NamingExceptionpublic void doStart()
throws java.lang.Exception
WebApplicationContextdoStart in class WebApplicationContextjava.lang.Exceptionpublic void handle(HttpRequest request, HttpResponse response) throws HttpException, java.io.IOException
HttpContexthandle in class HttpContextHttpExceptionjava.io.IOExceptionprotected void initialize()
throws java.lang.Exception
WebApplicationContextinitialize in class WebApplicationContextjava.lang.Exception - if an error occursprotected void initClassLoader(boolean forceContextLoader)
throws java.net.MalformedURLException,
java.io.IOException
HttpContextinitClassLoader in class HttpContextforceContextLoader - If true, a ContextLoader is always if
no loader has been set.java.net.MalformedURLExceptionjava.io.IOExceptionpublic void doStop()
throws java.lang.Exception
WebApplicationContextdoStop in class WebApplicationContextjava.lang.ExceptionCopyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.