|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.jetty6.JettyWebAppContext
public class JettyWebAppContext
Wrapper for a WebApplicationContext that sets up its J2EE environment.
Nested Class Summary | |
---|---|
class |
JettyWebAppContext.StartCommand
|
class |
JettyWebAppContext.StopCommand
|
Field Summary | |
---|---|
static String |
GBEAN_ATTR_SESSION_TIMEOUT
|
static GBeanInfo |
GBEAN_INFO
|
static String |
GBEAN_REF_PRE_HANDLER_FACTORY
|
static String |
GBEAN_REF_SESSION_HANDLER_FACTORY
|
Constructor Summary | |
---|---|
JettyWebAppContext(String objectName,
String originalSpecDD,
Map<String,Object> componentContext,
ClassLoader classLoader,
URL configurationBaseUrl,
Set unshareableResources,
Set applicationManagedSecurityResources,
String displayName,
Map contextParamMap,
Collection<String> listenerClassNames,
boolean distributable,
Map mimeMap,
String[] welcomeFiles,
Map<String,String> localeEncodingMapping,
Map errorPages,
org.mortbay.jetty.security.Authenticator authenticator,
String realmName,
Map<String,String> tagLibMap,
int sessionTimeoutSeconds,
SessionHandlerFactory handlerFactory,
PreHandlerFactory preHandlerFactory,
String policyContextID,
String securityRealmName,
RunAsSource runAsSource,
Holder holder,
Host host,
TransactionManager transactionManager,
org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator trackedConnectionAssociator,
JettyContainer jettyContainer,
RuntimeCustomizer contextCustomizer,
J2EEServer server,
J2EEApplication application,
Kernel kernel)
|
Method Summary | |
---|---|
void |
destroyInstance(Object o)
|
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
String |
getApplication()
|
WebContainer |
getContainer()
|
String |
getContextPath()
|
String |
getDeploymentDescriptor()
The deploymentDescriptor string must contain the original XML deployment descriptor that was created for this module during the deployment process. |
String |
getDisplayName()
|
static GBeanInfo |
getGBeanInfo()
|
String[] |
getJavaVMs()
A list of JVMs this module is running on. |
AbstractImmutableHandler |
getLifecycleChain()
|
String |
getObjectName()
Gets the unique name of this object. |
String |
getServer()
The J2EE server the application or module is deployed on. |
org.mortbay.jetty.servlet.ServletHandler |
getServletHandler()
|
String[] |
getServlets()
A list of Servlets included in this WAR |
Subject |
getSubjectForRole(String role)
|
URL |
getWARDirectory()
|
String |
getWARName()
|
ClassLoader |
getWebClassLoader()
|
boolean |
isEventProvider()
Determines if this object implemnts the event provider type defined in the J2EE Management specification. |
boolean |
isStateManageable()
Determines if this object implements the state manageable type defined in the J2EE Management specification. |
boolean |
isStatisticsProvider()
Determines if this object implemnts the statistics provider type defined in the J2EE Management specification. |
Object |
newInstance(String className)
|
void |
registerServletHolder(org.mortbay.jetty.servlet.ServletHolder servletHolder,
String servletName,
Set<String> servletMappings,
String objectName)
|
void |
setContextPath(String path)
|
void |
setDisplayName(String displayName)
|
void |
setErrorPages(Map errorPageMap)
|
void |
setListenerClassNames(Collection<String> eventListeners)
|
void |
setLocaleEncodingMapping(Map<String,String> localeEncodingMap)
|
void |
setSessionTimeoutSeconds(int seconds)
|
void |
setTagLibMap(Map<String,String> tagLibMap)
|
void |
unregisterServletHolder(org.mortbay.jetty.servlet.ServletHolder servletHolder,
String servletName,
Set<String> servletMappings,
String objectName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final GBeanInfo GBEAN_INFO
public static final String GBEAN_ATTR_SESSION_TIMEOUT
public static final String GBEAN_REF_SESSION_HANDLER_FACTORY
public static final String GBEAN_REF_PRE_HANDLER_FACTORY
Constructor Detail |
---|
public JettyWebAppContext(String objectName, String originalSpecDD, Map<String,Object> componentContext, ClassLoader classLoader, URL configurationBaseUrl, Set unshareableResources, Set applicationManagedSecurityResources, String displayName, Map contextParamMap, Collection<String> listenerClassNames, boolean distributable, Map mimeMap, String[] welcomeFiles, Map<String,String> localeEncodingMapping, Map errorPages, org.mortbay.jetty.security.Authenticator authenticator, String realmName, Map<String,String> tagLibMap, int sessionTimeoutSeconds, SessionHandlerFactory handlerFactory, PreHandlerFactory preHandlerFactory, String policyContextID, String securityRealmName, RunAsSource runAsSource, Holder holder, Host host, TransactionManager transactionManager, org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator trackedConnectionAssociator, JettyContainer jettyContainer, RuntimeCustomizer contextCustomizer, J2EEServer server, J2EEApplication application, Kernel kernel) throws Exception
Exception
Method Detail |
---|
public String getObjectName()
J2EEManagedObject
getObjectName
in interface J2EEManagedObject
public boolean isStateManageable()
J2EEManagedObject
isStateManageable
in interface J2EEManagedObject
public boolean isStatisticsProvider()
J2EEManagedObject
isStatisticsProvider
in interface J2EEManagedObject
public boolean isEventProvider()
J2EEManagedObject
isEventProvider
in interface J2EEManagedObject
public URL getWARDirectory()
public String getWARName()
public WebContainer getContainer()
public void setContextPath(String path)
public String getContextPath()
public ClassLoader getWebClassLoader()
getWebClassLoader
in interface JettyServletRegistration
public AbstractImmutableHandler getLifecycleChain()
getLifecycleChain
in interface JettyServletRegistration
public Subject getSubjectForRole(String role) throws LoginException
getSubjectForRole
in interface JettyServletRegistration
LoginException
public Object newInstance(String className) throws InstantiationException, IllegalAccessException
newInstance
in interface JettyServletRegistration
InstantiationException
IllegalAccessException
public void destroyInstance(Object o) throws Exception
destroyInstance
in interface JettyServletRegistration
Exception
public void doStart() throws Exception
GBeanLifecycle
doStart
in interface GBeanLifecycle
Exception
- if the target failed to start; this will cause a transition to the failed statepublic void doStop() throws Exception
GBeanLifecycle
doStop
in interface GBeanLifecycle
Exception
- if the target failed to stop; this will cause a transition to the failed statepublic void doFail()
GBeanLifecycle
doFail
in interface GBeanLifecycle
public void setLocaleEncodingMapping(Map<String,String> localeEncodingMap)
public void setListenerClassNames(Collection<String> eventListeners) throws ClassNotFoundException, IllegalAccessException, InstantiationException
ClassNotFoundException
IllegalAccessException
InstantiationException
public void setErrorPages(Map errorPageMap)
public void setTagLibMap(Map<String,String> tagLibMap)
public void setSessionTimeoutSeconds(int seconds)
public String getDisplayName()
public void setDisplayName(String displayName)
public String getDeploymentDescriptor()
J2EEDeployedObject
getDeploymentDescriptor
in interface J2EEDeployedObject
public String getServer()
J2EEDeployedObject
getServer
in interface J2EEDeployedObject
public String getApplication()
public String[] getJavaVMs()
J2EEModule
getJavaVMs
in interface J2EEModule
public String[] getServlets()
WebModule
getServlets
in interface WebModule
public org.mortbay.jetty.servlet.ServletHandler getServletHandler()
getServletHandler
in interface JettyServletRegistration
public void registerServletHolder(org.mortbay.jetty.servlet.ServletHolder servletHolder, String servletName, Set<String> servletMappings, String objectName) throws Exception
registerServletHolder
in interface JettyServletRegistration
Exception
public void unregisterServletHolder(org.mortbay.jetty.servlet.ServletHolder servletHolder, String servletName, Set<String> servletMappings, String objectName) throws Exception
unregisterServletHolder
in interface JettyServletRegistration
Exception
public static GBeanInfo getGBeanInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |