org.jboss.jetty
Class JBossWebAppContext

java.lang.Object
  extended by org.eclipse.jetty.util.component.AbstractLifeCycle
      extended by org.eclipse.jetty.util.component.AggregateLifeCycle
          extended by org.eclipse.jetty.server.handler.AbstractHandler
              extended by org.eclipse.jetty.server.handler.AbstractHandlerContainer
                  extended by org.eclipse.jetty.server.handler.HandlerWrapper
                      extended by org.eclipse.jetty.server.handler.ScopedHandler
                          extended by org.eclipse.jetty.server.handler.ContextHandler
                              extended by org.eclipse.jetty.servlet.ServletContextHandler
                                  extended by org.eclipse.jetty.webapp.WebAppContext
                                      extended by org.mortbay.j2ee.J2EEWebAppContext
                                          extended by org.jboss.jetty.JBossWebAppContext
All Implemented Interfaces:
org.eclipse.jetty.server.Handler, org.eclipse.jetty.server.HandlerContainer, org.eclipse.jetty.server.Server.Graceful, org.eclipse.jetty.util.Attributes, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.LifeCycle, org.eclipse.jetty.webapp.WebAppClassLoader.Context

public class JBossWebAppContext
extends J2EEWebAppContext

JBossWebApplicationContext Customize the jetty WebAppContext to jboss environment.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jetty.webapp.WebAppContext
org.eclipse.jetty.webapp.WebAppContext.Context
 
Nested classes/interfaces inherited from class org.eclipse.jetty.servlet.ServletContextHandler
org.eclipse.jetty.servlet.ServletContextHandler.Decorator
 
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
 
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener
 
Field Summary
protected static org.jboss.logging.Logger __log
           
protected  org.jboss.web.AbstractWebContainer.WebDescriptorParser _descriptorParser
           
protected  org.jboss.web.WebApplication _webApp
           
 
Fields inherited from class org.mortbay.j2ee.J2EEWebAppContext
_distributableSessionManager, _log
 
Fields inherited from class org.eclipse.jetty.webapp.WebAppContext
__dftServerClasses, __dftSystemClasses, BASETEMPDIR, ERROR_PAGE, SERVER_CONFIG, SERVER_SRV_CLASSES, SERVER_SYS_CLASSES, TEMPDIR, WEB_DEFAULTS_XML
 
Fields inherited from class org.eclipse.jetty.servlet.ServletContextHandler
_decorators, _defaultSecurityHandlerClass, _options, _restrictedContextListeners, _securityHandler, _servletHandler, _sessionHandler, NO_SECURITY, NO_SESSIONS, SECURITY, SESSIONS
 
Fields inherited from class org.eclipse.jetty.server.handler.ContextHandler
_scontext, MANAGED_ATTRIBUTES
 
Fields inherited from class org.eclipse.jetty.server.handler.ScopedHandler
_nextScope, _outerScope
 
Fields inherited from class org.eclipse.jetty.server.handler.HandlerWrapper
_handler
 
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
Constructor Summary
JBossWebAppContext(org.jboss.web.AbstractWebContainer.WebDescriptorParser descriptorParser, org.jboss.web.WebApplication webApp, String warUrl)
          Constructor
 
Method Summary
 void doStop()
           
 JBossLoginService getRealm()
           
 String getSubjectAttribute()
           
 String getUniqueName()
           
 void setRealm(JBossLoginService realm)
           
 void setSubjectAttribute(String subjAttr)
           
protected  void setUpENC(ClassLoader loader)
           
protected  void startContext()
           
 
Methods inherited from class org.mortbay.j2ee.J2EEWebAppContext
doStart, getDistributableSessionManager, setDistributableSessionManager
 
Methods inherited from class org.eclipse.jetty.webapp.WebAppContext
addEventListener, addOverrideDescriptor, addServerClass, addSystemClass, configure, destroy, getConfigurationClasses, getConfigurations, getCurrentWebAppContext, getDefaultConfigurationClasses, getDefaultsDescriptor, getDefaultServerClasses, getDefaultSystemClasses, getDescriptor, getExtraClasspath, getMetaData, getOverrideDescriptor, getOverrideDescriptors, getPermissions, getResource, getResourceAlias, getResourceAliases, getServerClasses, getSystemClasses, getTempDirectory, getUnavailableException, getWar, getWebInf, isAllowDuplicateFragmentNames, isConfigurationDiscovered, isCopyWebDir, isCopyWebInf, isDistributable, isExtractWAR, isLogUrlOnStart, isParentLoaderPriority, isProtectedTarget, isServerClass, isSystemClass, isThrowUnavailableOnStartupException, loadConfigurations, loadSystemClasses, postConfigure, preConfigure, removeResourceAlias, setAllowDuplicateFragmentNames, setClassLoader, setConfigurationClasses, setConfigurationDiscovered, setConfigurations, setContextWhiteList, setCopyWebDir, setCopyWebInf, setDefaultsDescriptor, setDescriptor, setDisplayName, setDistributable, setEventListeners, setExtraClasspath, setExtractWAR, setLogUrlOnStart, setOverrideDescriptor, setOverrideDescriptors, setParentLoaderPriority, setPermissions, setResourceAlias, setResourceAliases, setServer, setServerClasses, setSystemClasses, setTempDirectory, setThrowUnavailableOnStartupException, setWar, toString
 
Methods inherited from class org.eclipse.jetty.servlet.ServletContextHandler
addDecorator, addFilter, addFilter, addFilter, addFilter, addFilter, addFilter, addServlet, addServlet, addServlet, callContextDestroyed, callContextInitialized, getDecorators, getDefaultSecurityHandlerClass, getSecurityHandler, getServletHandler, getSessionHandler, newSecurityHandler, newServletHandler, newSessionHandler, setDecorators, setDefaultSecurityHandlerClass, setSecurityHandler, setServletHandler, setSessionHandler
 
Methods inherited from class org.eclipse.jetty.server.handler.ContextHandler
addLocaleEncoding, checkContext, checkManagedAttribute, clearAttributes, doHandle, doScope, dump, getAllowNullPathInfo, getAttribute, getAttributeNames, getAttributes, getBaseResource, getClassLoader, getClassPath, getConnectorNames, getContextPath, getCurrentContext, getDisplayName, getErrorHandler, getEventListeners, getInitParameter, getInitParameterNames, getInitParams, getLocaleEncoding, getLocaleEncoding, getLogger, getMaxFormContentSize, getMimeTypes, getResourceBase, getResourcePaths, getServletContext, getVirtualHosts, getWelcomeFiles, handle, isAliases, isAvailable, isCompactPath, isShutdown, loadClass, newResource, newResource, removeAttribute, setAliases, setAllowNullPathInfo, setAttribute, setAttributes, setAvailable, setBaseResource, setCompactPath, setConnectorNames, setContextPath, setErrorHandler, setInitParameter, setLogger, setManagedAttribute, setMaxFormContentSize, setMimeTypes, setResourceBase, setShutdown, setVirtualHosts, setWelcomeFiles
 
Methods inherited from class org.eclipse.jetty.server.handler.ScopedHandler
handle, never, nextHandle, nextScope
 
Methods inherited from class org.eclipse.jetty.server.handler.HandlerWrapper
expandChildren, getHandler, getHandlers, getNestedHandlerByClass, setHandler
 
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandlerContainer
expandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass
 
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandler
dumpThis, getServer
 
Methods inherited from class org.eclipse.jetty.util.component.AggregateLifeCycle
addBean, dump, dump, dump, dump, dumpStdErr, getBean, getBeans, getBeans, removeBean, removeBeans
 
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jetty.webapp.WebAppClassLoader.Context
newResource
 
Methods inherited from interface org.eclipse.jetty.server.Handler
getServer, handle
 
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 

Field Detail

__log

protected static org.jboss.logging.Logger __log

_descriptorParser

protected org.jboss.web.AbstractWebContainer.WebDescriptorParser _descriptorParser

_webApp

protected org.jboss.web.WebApplication _webApp
Constructor Detail

JBossWebAppContext

public JBossWebAppContext(org.jboss.web.AbstractWebContainer.WebDescriptorParser descriptorParser,
                          org.jboss.web.WebApplication webApp,
                          String warUrl)
                   throws Exception
Constructor

Parameters:
descriptorParser -
webApp -
warUrl -
Throws:
Exception
Method Detail

doStop

public void doStop()
            throws Exception
Overrides:
doStop in class J2EEWebAppContext
Throws:
Exception

setRealm

public void setRealm(JBossLoginService realm)

getRealm

public JBossLoginService getRealm()

setSubjectAttribute

public void setSubjectAttribute(String subjAttr)

getSubjectAttribute

public String getSubjectAttribute()

getUniqueName

public String getUniqueName()

startContext

protected void startContext()
                     throws Exception
Overrides:
startContext in class org.eclipse.jetty.webapp.WebAppContext
Throws:
Exception

setUpENC

protected void setUpENC(ClassLoader loader)
                 throws Exception
Throws:
Exception


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.