|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.core.ContainerBase
org.apache.catalina.core.StandardContext
com.sun.enterprise.web.pwc.PwcWebModule
com.sun.enterprise.web.WebModule
public class WebModule
Class representing a web module for use by the Application Server.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.catalina.core.StandardContext |
|---|
StandardContext.RestrictedServletContextListener |
| Nested classes/interfaces inherited from class org.apache.catalina.core.ContainerBase |
|---|
ContainerBase.ContainerBackgroundProcessor, ContainerBase.PrivilegedAddChild |
| Field Summary | |
|---|---|
protected java.lang.Object[] |
cachedFinds
Cached findXXX results |
protected static java.util.ResourceBundle |
rb
|
| Fields inherited from class com.sun.enterprise.web.pwc.PwcWebModule |
|---|
_id, defaultCharset, formHintField, webSessionCookieConfig |
| Fields inherited from class org.apache.catalina.core.StandardContext |
|---|
allowLinking, cacheMaxSize, cacheTTL, caseSensitive, caseSensitiveMapping, context, contextListeners, directoryListing, filterRegisMap, isJsfApplication, servletRegisMap, urlEncoder |
| Fields inherited from class org.apache.catalina.core.ContainerBase |
|---|
backgroundProcessorDelay, checkIfRequestIsSecure, children, controller, debug, domain, hasCustomPipeline, initialized, lifecycle, listeners, loader, manager, mserver, name, notifyContainerListeners, oname, parent, parentClassLoader, pipeline, readLock, realm, resources, sm, started, suffix, support, type, writeLock |
| Fields inherited from interface javax.servlet.ServletContext |
|---|
ORDERED_LIBS, TEMPDIR |
| Fields inherited from interface org.apache.catalina.Context |
|---|
RELOAD_EVENT |
| Fields inherited from interface org.apache.catalina.Container |
|---|
ADD_CHILD_EVENT, ADD_MAPPER_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_MAPPER_EVENT, REMOVE_VALVE_EVENT |
| Fields inherited from interface org.apache.catalina.Lifecycle |
|---|
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT |
| Constructor Summary | |
|---|---|
WebModule()
Constructor. |
|
WebModule(org.jvnet.hk2.component.Habitat habitat)
|
|
| Method Summary | ||
|---|---|---|
void |
addAdHocValve(GlassFishValve valve)
Adds the given valve to this web module's ad-hoc pipeline. |
|
protected void |
addCatalinaListener(java.lang.String listenerName)
Adds the Catalina listener with the given class name to this WebModule. |
|
protected void |
addValve(java.lang.String className)
Instantiates a Valve from the given className and adds it to the Pipeline of this WebModule. |
|
protected void |
addValve(Valve valveDescriptor)
Constructs a Valve from the given valveDescriptor and adds it to the Pipeline of this WebModule. |
|
void |
afterServiceEvent(java.lang.String servletName,
int status)
|
|
void |
beforeServiceEvent(java.lang.String servletName)
|
|
protected void |
callServletContainerInitializers()
|
|
protected void |
configureCatalinaProperties()
Configure the WebModule
| |
protected void |
configureCatalinaProperties(java.lang.String propName,
java.lang.String propValue)
Configure the WebModule
| |
protected void |
configureSessionSettings(WebBundleDescriptor wbd,
WebModuleConfig wmInfo)
Create and configure the session manager for this web application according to the persistence type specified. |
|
protected void |
configureValves()
Configure the WebModule valves. |
|
protected void |
contextListenerStart()
|
|
protected ServletRegistrationImpl |
createDynamicServletRegistrationImpl(StandardWrapper wrapper)
|
|
protected
|
createFilterInstance(java.lang.Class<T> clazz)
Instantiates the given Filter class. |
|
|
createListenerInstance(java.lang.Class<T> clazz)
Instantiates the given EventListener class. |
|
java.io.ObjectInputStream |
createObjectInputStream(java.io.InputStream is)
Creates an ObjectInputStream that provides special deserialization logic for classes that are normally not serializable (such as javax.naming.Context). |
|
java.io.ObjectOutputStream |
createObjectOutputStream(java.io.OutputStream os)
Creates an ObjectOutputStream that provides special serialization logic for classes that are normally not serializable (such as javax.naming.Context). |
|
protected
|
createServletInstance(java.lang.Class<T> clazz)
Instantiates the given Servlet class. |
|
protected ServletRegistrationImpl |
createServletRegistrationImpl(StandardWrapper wrapper)
|
|
Pipeline |
getAdHocPipeline()
Gets this web module's ad-hoc pipeline. |
|
java.lang.String |
getAdHocServletName(java.lang.String path)
Returns the name of the ad-hoc servlet responsible for servicing the given path. |
|
Application |
getBean()
|
|
java.lang.Object[] |
getCachedFindOperation()
Return the cached result of doing findXX on this object NOTE: this method MUST be used only when loading/using the content of default-web.xml |
|
java.lang.String |
getComponentId()
Gets ComponentId for Invocation. |
|
java.lang.String |
getFileEncoding()
Gets the file encoding of all static resources of this web module. |
|
SunWebApp |
getIasWebAppConfigBean()
gets the sun-web.xml config bean |
|
LocaleCharsetMap[] |
getLocaleCharsetMap()
return locale-charset-map |
|
java.lang.String |
getMonitoringNodeName()
|
|
SecurityConfig |
getSecurityConfig()
|
|
ServerContext |
getServerContext()
Gets ServerContext. |
|
protected org.glassfish.hk2.classmodel.reflect.Types |
getTypes()
|
|
WebBundleDescriptor |
getWebBundleDescriptor()
Gets the WebBundleDesciptor (web.xml) for this WebModule. |
|
WebContainer |
getWebContainer()
Gets the web container in which this web module was loaded. |
|
WebModuleConfig |
getWebModuleConfig()
|
|
boolean |
hasAdHocPaths()
Indicates whether this web module contains any ad-hoc paths. |
|
boolean |
hasAdHocSubtrees()
Indicates whether this web module contains any ad-hoc subtrees. |
|
boolean |
hasBeenXmlConfigured()
Return true if the default=web.xml has been read for
this module. |
|
boolean |
hasLocaleToCharsetMapping()
Returns true if this web module specifies a locale-charset-map in its sun-web.xml, false otherwise. |
|
protected java.util.EventListener |
loadListener(java.lang.ClassLoader loader,
java.lang.String listenerClassName)
Loads and instantiates the listener with the specified classname. |
|
java.lang.String |
mapLocalesToCharset(java.util.Enumeration locales)
Matches the given request locales against the charsets specified in the locale-charset-map of this web module's sun-web.xml, and returns the first matching charset. |
|
void |
removeAdHocValve(GlassFishValve valve)
Removes the given valve from this web module's ad-hoc pipeline. |
|
protected void |
removePatternFromServlet(Wrapper wrapper,
java.lang.String pattern)
|
|
void |
servletDestroyedEvent(java.lang.String servletName)
|
|
void |
servletInitializedEvent(java.lang.String servletName)
|
|
void |
sessionActivatedEndEvent(javax.servlet.http.HttpSession session)
|
|
void |
sessionActivatedStartEvent(javax.servlet.http.HttpSession session)
|
|
void |
sessionCreatedEvent(javax.servlet.http.HttpSession session)
|
|
void |
sessionDestroyedEvent(javax.servlet.http.HttpSession session)
|
|
void |
sessionExpiredEvent(javax.servlet.http.HttpSession session)
|
|
void |
sessionPassivatedEndEvent(javax.servlet.http.HttpSession session)
|
|
void |
sessionPassivatedStartEvent(javax.servlet.http.HttpSession session)
|
|
void |
sessionPersistedEndEvent(javax.servlet.http.HttpSession session)
|
|
void |
sessionPersistedStartEvent(javax.servlet.http.HttpSession session)
|
|
void |
sessionRejectedEvent(int maxSessions)
|
|
void |
setBean(Application bean)
|
|
void |
setCachedFindOperation(java.lang.Object[] cachedFinds)
Cache the result of doing findXX on this object NOTE: this method MUST be used only when loading/using the content of default-web.xml |
|
void |
setFileEncoding(java.lang.String enc)
Sets the file encoding of all static resources of this web module. |
|
void |
setI18nInfo()
Sets the parameter encoding (i18n) info from sun-web.xml. |
|
void |
setIasWebAppConfigBean(SunWebApp iasBean)
set the sun-web.xml config bean |
|
void |
setParent(Container container)
Sets the virtual server parent of this web module, and passes it on to this web module's realm adapter.. |
|
void |
setRealm(Realm realm)
|
|
void |
setSecurityConfig(SecurityConfig config)
|
|
void |
setWebContainer(WebContainer webContainer)
Sets the web container in which this web module was loaded. |
|
void |
setWebModuleConfig(WebModuleConfig wmInfo)
|
|
void |
setXmlConfigured(boolean hasBeenXmlConfigured)
Set to true when the default-web.xml has been read for
this module. |
|
void |
start()
Starts this web module. |
|
void |
stop()
Stops this web module. |
|
void |
webModuleStartedEvent()
|
|
void |
webModuleStoppedEvent()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.glassfish.embeddable.web.Context |
|---|
addListener, addListener, getPath, isDirectoryListing, setDefaultWebXml, setDirectoryListing, setPath |
| Methods inherited from interface javax.servlet.ServletContext |
|---|
addFilter, addFilter, addFilter, addListener, addServlet, addServlet, addServlet, createFilter, createListener, createServlet, declareRoles, getAttribute, getAttributeNames, getClassLoader, getContext, getContextPath, getDefaultSessionTrackingModes, getEffectiveMajorVersion, getEffectiveMinorVersion, getEffectiveSessionTrackingModes, getFilterRegistration, getFilterRegistrations, getInitParameter, getInitParameterNames, getJspConfigDescriptor, getMajorVersion, getMimeType, getMinorVersion, getNamedDispatcher, getRealPath, getRequestDispatcher, getResource, getResourceAsStream, getResourcePaths, getServerInfo, getServlet, getServletContextName, getServletNames, getServletRegistration, getServletRegistrations, getServlets, getSessionCookieConfig, log, log, log, removeAttribute, setAttribute, setInitParameter, setSessionTrackingModes |
| Field Detail |
|---|
protected static final java.util.ResourceBundle rb
protected java.lang.Object[] cachedFinds
| Constructor Detail |
|---|
public WebModule()
public WebModule(org.jvnet.hk2.component.Habitat habitat)
| Method Detail |
|---|
public void setIasWebAppConfigBean(SunWebApp iasBean)
public SunWebApp getIasWebAppConfigBean()
public WebContainer getWebContainer()
public void setWebContainer(WebContainer webContainer)
public void setWebModuleConfig(WebModuleConfig wmInfo)
public WebModuleConfig getWebModuleConfig()
public java.lang.String getMonitoringNodeName()
public void setI18nInfo()
public LocaleCharsetMap[] getLocaleCharsetMap()
public boolean hasLocaleToCharsetMapping()
hasLocaleToCharsetMapping in class PwcWebModulepublic java.lang.String mapLocalesToCharset(java.util.Enumeration locales)
mapLocalesToCharset in class PwcWebModulelocales - Request locales
public java.io.ObjectInputStream createObjectInputStream(java.io.InputStream is)
throws java.io.IOException
createObjectInputStream in class StandardContextjava.io.IOException
public java.io.ObjectOutputStream createObjectOutputStream(java.io.OutputStream os)
throws java.io.IOException
createObjectOutputStream in class StandardContextjava.io.IOExceptionpublic void setXmlConfigured(boolean hasBeenXmlConfigured)
true when the default-web.xml has been read for
this module.
public boolean hasBeenXmlConfigured()
true if the default=web.xml has been read for
this module.
public void setCachedFindOperation(java.lang.Object[] cachedFinds)
public java.lang.Object[] getCachedFindOperation()
public void setRealm(Realm realm)
setRealm in interface ContainersetRealm in class ContainerBase
public void start()
throws LifecycleException
start in interface Lifecyclestart in class StandardContextLifecycleException
public void stop()
throws LifecycleException
stop in interface Lifecyclestop in class StandardContextLifecycleExceptionprotected void contextListenerStart()
contextListenerStart in class StandardContextprotected org.glassfish.hk2.classmodel.reflect.Types getTypes()
getTypes in class StandardContext
protected void callServletContainerInitializers()
throws LifecycleException
callServletContainerInitializers in class StandardContextLifecycleExceptionpublic void setParent(Container container)
setParent in interface ContainersetParent in class ContainerBasecontainer - The virtual server parentpublic boolean hasAdHocPaths()
hasAdHocPaths in interface ContexthasAdHocPaths in class StandardContextpublic boolean hasAdHocSubtrees()
public java.lang.String getAdHocServletName(java.lang.String path)
getAdHocServletName in interface ContextgetAdHocServletName in class StandardContextpath - The path whose associated ad-hoc servlet is needed
public void addAdHocValve(GlassFishValve valve)
valve - The valve to addpublic void removeAdHocValve(GlassFishValve valve)
valve - The valve to removepublic Pipeline getAdHocPipeline()
public void setFileEncoding(java.lang.String enc)
enc - The file encoding of static resources of this web modulepublic java.lang.String getFileEncoding()
protected void configureValves()
WebModule valves.
protected void configureCatalinaProperties()
WebModule
protected void configureCatalinaProperties(java.lang.String propName,
java.lang.String propValue)
WebModule
propName - the property namepropValue - the property valueprotected void addValve(java.lang.String className)
className - the fully qualified class name of the Valveprotected void addValve(Valve valveDescriptor)
valveDescriptor - the object containing the information to
create the valve.protected void addCatalinaListener(java.lang.String listenerName)
listenerName - The fully qualified class name of the listenerpublic Application getBean()
public void setBean(Application bean)
public WebBundleDescriptor getWebBundleDescriptor()
public java.lang.String getComponentId()
public ServerContext getServerContext()
protected java.util.EventListener loadListener(java.lang.ClassLoader loader,
java.lang.String listenerClassName)
throws java.lang.Exception
loadListener in class StandardContextloader - the classloader to uselistenerClassName - the fully qualified classname to instantiate
java.lang.Exception - if the specified classname fails to be loaded or
instantiated
protected void configureSessionSettings(WebBundleDescriptor wbd,
WebModuleConfig wmInfo)
protected ServletRegistrationImpl createServletRegistrationImpl(StandardWrapper wrapper)
createServletRegistrationImpl in class StandardContextprotected ServletRegistrationImpl createDynamicServletRegistrationImpl(StandardWrapper wrapper)
createDynamicServletRegistrationImpl in class StandardContext
protected void removePatternFromServlet(Wrapper wrapper,
java.lang.String pattern)
removePatternFromServlet in class StandardContext
protected <T extends javax.servlet.Servlet> T createServletInstance(java.lang.Class<T> clazz)
throws java.lang.Exception
createServletInstance in class StandardContextjava.lang.Exception
protected <T extends javax.servlet.Filter> T createFilterInstance(java.lang.Class<T> clazz)
throws java.lang.Exception
createFilterInstance in class StandardContextjava.lang.Exception
public <T extends java.util.EventListener> T createListenerInstance(java.lang.Class<T> clazz)
throws java.lang.Exception
createListenerInstance in class StandardContextjava.lang.Exceptionpublic void servletInitializedEvent(java.lang.String servletName)
public void servletDestroyedEvent(java.lang.String servletName)
public void beforeServiceEvent(java.lang.String servletName)
public void afterServiceEvent(java.lang.String servletName,
int status)
public void sessionCreatedEvent(javax.servlet.http.HttpSession session)
sessionCreatedEvent in class StandardContextpublic void sessionDestroyedEvent(javax.servlet.http.HttpSession session)
sessionDestroyedEvent in class StandardContextpublic void sessionRejectedEvent(int maxSessions)
sessionRejectedEvent in class StandardContextpublic void sessionExpiredEvent(javax.servlet.http.HttpSession session)
sessionExpiredEvent in class StandardContextpublic void sessionPersistedStartEvent(javax.servlet.http.HttpSession session)
sessionPersistedStartEvent in class StandardContextpublic void sessionPersistedEndEvent(javax.servlet.http.HttpSession session)
sessionPersistedEndEvent in class StandardContextpublic void sessionActivatedStartEvent(javax.servlet.http.HttpSession session)
sessionActivatedStartEvent in class StandardContextpublic void sessionActivatedEndEvent(javax.servlet.http.HttpSession session)
sessionActivatedEndEvent in class StandardContextpublic void sessionPassivatedStartEvent(javax.servlet.http.HttpSession session)
sessionPassivatedStartEvent in class StandardContextpublic void sessionPassivatedEndEvent(javax.servlet.http.HttpSession session)
sessionPassivatedEndEvent in class StandardContextpublic void webModuleStartedEvent()
public void webModuleStoppedEvent()
public SecurityConfig getSecurityConfig()
public void setSecurityConfig(SecurityConfig config)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||