@Configurable public class WebApp extends ServletContextImpl implements Dependency, EnvironmentBean, SchemaBean, InvocationBuilder, EnvironmentDeployInstance, JspConfigDescriptor, java.io.Serializable
ORDERED_LIBS, TEMPDIR
Modifier and Type | Method and Description |
---|---|
void |
accessLog(HttpServletRequest req,
HttpServletResponse res)
Access logging for high-level errors
|
void |
add(AbstractAccessLog log)
Allow custom access log
|
void |
add(DispatchRule rule)
Adds a rewrite dispatch rule
|
void |
add(RewriteFilter filter)
Adds a rewrite dispatch rule
|
void |
add(SecurityConstraint constraint) |
void |
addCacheMapping(CacheMapping mapping)
Returns the maximum length for a cache.
|
void |
addConfigFile(Path path)
Backwards compatability for config-file.
|
void |
addContextParam(InitParam initParam)
Sets the context param
|
void |
addErrorPage(ErrorPage errorPage)
Adds an error page
|
void |
addFilter(FilterConfigImpl config)
Adds a filter configuration.
|
FilterRegistration.Dynamic |
addFilter(java.lang.String filterName,
java.lang.Class<? extends Filter> filterClass)
Adds a filter using filterClass
|
FilterRegistration.Dynamic |
addFilter(java.lang.String filterName,
Filter filter)
Adds a dynamic filter registration using filter
|
FilterRegistration.Dynamic |
addFilter(java.lang.String filterName,
java.lang.String className)
Adds a dynamic filter registration using className
|
void |
addFilter(WebFilter webFilter,
java.lang.String filterClassName) |
void |
addFilterMapping(FilterMapping filterMapping)
Adds a filter-mapping configuration.
|
void |
addJspConfig(JspConfig config)
jsp-config configuration
|
void |
addListener(java.lang.Class<? extends java.util.EventListener> listenerClass) |
void |
addListener(ListenerConfig listener) |
void |
addListener(java.lang.String className) |
<T extends java.util.EventListener> |
addListener(T listener) |
void |
addMimeMapping(MimeMapping mimeMapping)
Adds a mime-mapping
|
void |
addPathMapping(PathMapping pathMapping)
Adds a path-mapping
|
void |
addPersistenceContextRef(PersistenceContextRefConfig persistenceContextRefConfig)
Adds a persistence-context-ref configuration.
|
void |
addResourceRef(ResourceRef ref)
Adds a ResourceRef validator.
|
void |
addRewriteDispatch(RewriteDispatch dispatch)
Adds rewrite-dispatch.
|
void |
addSecurityConstraint(SecurityConstraint constraint)
Adds a security constraint
|
void |
addSecurityRole(SecurityRole role)
Adds a security role
|
void |
addSendfileCount() |
void |
addServlet(ServletConfigImpl config)
Adds a servlet configuration.
|
ServletRegistration.Dynamic |
addServlet(java.lang.String servletName,
java.lang.Class<? extends Servlet> servletClass)
Adds a servlet class to the servlet container.
|
ServletRegistration.Dynamic |
addServlet(java.lang.String servletName,
Servlet servlet)
Adds a servlet to context
|
ServletRegistration.Dynamic |
addServlet(java.lang.String servletName,
java.lang.String className)
Adds a servlet with the given className to context
|
void |
addServlet(WebServlet webServlet,
java.lang.String servletClassName) |
void |
addServletMapping(ServletMapping servletMapping)
Adds a servlet-mapping configuration.
|
void |
addServletRegexp(ServletRegexp servletRegexp)
Adds a servlet-regexp configuration.
|
void |
addSessionConfig(SessionManager manager)
Adds the session manager.
|
void |
addStatus500() |
void |
addTaglib(JspTaglib taglib)
taglib configuration
|
void |
addWebApp(WebAppConfig config)
Adds a sub web-app
|
void |
addWebAppDefault(WebAppConfig config)
Adds a web-app default
|
void |
addWebAppDeploy(WebAppExpandDeployGenerator deploy)
Adds a war generator
|
void |
addWelcomeFileList(WelcomeFileList list)
Adds a welcome file list to the webApp.
|
void |
buildDispatchInvocation(Invocation invocation)
Fills the invocation for a rewrite-dispatch/dispatch request.
|
void |
buildDispatchInvocation(Invocation invocation,
FilterMapper filterMapper)
Fills the invocation for subrequests.
|
void |
buildErrorInvocation(Invocation invocation)
Fills the invocation for an error request.
|
void |
buildForwardInvocation(Invocation invocation)
Fills the invocation for a forward request.
|
void |
buildIncludeInvocation(Invocation invocation)
Fills the invocation for an include request.
|
Invocation |
buildInvocation(Invocation invocation)
Fills the servlet instance.
|
Invocation |
buildInvocation(Invocation invocation,
boolean isTop)
Fills the servlet instance.
|
void |
buildLoginInvocation(Invocation invocation)
Fills the invocation for a login request.
|
void |
clearCache()
Clears all caches, including the invocation cache, the filter cache, and the proxy cache.
|
Ordering |
createAbsoluteOrdering() |
AccessLog |
createAccessLog()
Sets the access log.
|
InitParam |
createContextParam()
Sets an init-param
|
EjbLocalRef |
createEjbLocalRef()
ejb-local-ref configuration
|
EjbRef |
createEjbRef()
ejb-ref configuration
|
<T extends Filter> |
createFilter(java.lang.Class<T> filterClass)
Create a filter using class
|
JspPropertyGroup |
createJsp()
jsp configuration
|
JspConfig |
createJspConfig() |
<T extends java.util.EventListener> |
createListener(java.lang.Class<T> listenerClass) |
LocaleEncodingMappingList |
createLocaleEncodingMappingList()
Configures the locale encoding.
|
MultipartForm |
createMultipartForm()
Multipart form config.
|
Ordering |
createOrdering() |
RewriteDispatch |
createRewriteDispatch()
Adds rewrite-dispatch (backwards compat).
|
RewriteRealPath |
createRewriteRealPath()
Adds rewrite-real-path.
|
ServletConfigImpl |
createServlet()
Adds a servlet configuration.
|
<T extends Servlet> |
createServlet(java.lang.Class<T> servletClass)
Creates a servlet instance using the web-apps injection.
|
ServletMapping |
createServletMapping() |
SessionManager |
createSessionConfig()
Configures the session manager.
|
WebAppExpandDeployGenerator |
createWebAppDeploy()
Sets the war-expansion
|
void |
destroy()
Closes the webApp.
|
java.lang.String |
generateCookieDomain(HttpServletRequest request) |
AbstractAccessLog |
getAccessLog()
Returns the access log
|
int |
getActiveSessionCount()
Returns the active session count.
|
long |
getActiveWaitTime() |
WebAppAdmin |
getAdmin() |
Authenticator |
getAuthenticator()
Gets the authenticator
|
InjectManager |
getBeanManager() |
long |
getCacheMaxLength()
Returns the maximum length for a cache.
|
java.lang.String |
getCharacterEncoding()
Returns the character encoding.
|
java.lang.ClassLoader |
getClassLoader()
Gets the environment class loader.
|
java.lang.String[] |
getClassLoaderHackPackages()
Returns the classloader hack packages.
|
java.lang.Throwable |
getConfigException()
Gets the config exception.
|
Authenticator |
getConfiguredAuthenticator()
Gets the authenticator
|
Login |
getConfiguredLogin() |
ServletContext |
getContext(java.lang.String uri)
Returns the servlet context for the URI.
|
java.lang.String |
getContextPath()
Gets the context path
|
WebAppController |
getController() |
boolean |
getCookieHttpOnly()
Sets the cookie-http-only
|
static WebApp |
getCurrent()
Returns the local webApp.
|
java.lang.String |
getDescription()
A user description of the web-app
|
boolean |
getDispatchWrapsFilters()
Get true if includes wrap filters.
|
EnvironmentClassLoader |
getEnvironmentClassLoader()
Gets the environment class loader.
|
ErrorPageManager |
getErrorPageManager()
Gets the error page manager.
|
java.lang.Object |
getExtension(java.lang.String key)
Returns an extension.
|
FilterRegistration |
getFilterRegistration(java.lang.String filterName)
Returns filter registration sing filterName
|
java.util.Map<java.lang.String,? extends FilterRegistration> |
getFilterRegistrations()
Returns filter registrations
|
long |
getFormParameterLengthMax()
Returns the form upload max.
|
int |
getFormParameterMax() |
long |
getFormUploadMax()
Returns the form upload max.
|
Host |
getHost()
Returns the owning host.
|
HostMXBean |
getHostAdmin()
Gets the URL
|
java.lang.String |
getHostName()
Gets the URL
|
java.lang.String |
getId()
Gets the URL
|
InvocationDecoder |
getInvocationDecoder() |
DependencyContainer |
getInvocationDependency()
Gets the dependency container
|
JspPropertyGroup |
getJsp()
Returns the JSP configuration.
|
JspApplicationContextImpl |
getJspApplicationContext()
Returns the JspApplicationContext for EL evaluation.
|
JspConfigDescriptor |
getJspConfigDescriptor() |
java.util.Collection<JspPropertyGroupDescriptor> |
getJspPropertyGroups() |
static WebApp |
getLocal()
Returns the local webApp.
|
java.lang.String |
getLocaleEncoding(java.util.Locale locale)
Returns the locale encoding.
|
Login |
getLogin()
Gets the login manager.
|
RequestDispatcher |
getLoginDispatcher(java.lang.String url)
Returns a dispatcher for the named servlet.
|
long |
getMaxAge(java.lang.String uri)
Returns the time for a cache mapping.
|
java.lang.String |
getMimeType(java.lang.String uri)
Returns the mime type for a uri
|
java.lang.String |
getMimeTypeImpl(java.lang.String ext)
Maps from a URI to a real path.
|
java.lang.String |
getModuleName() |
RequestDispatcher |
getNamedDispatcher(java.lang.String servletName)
Returns a dispatcher for the named servlet.
|
javax.management.ObjectName |
getObjectName()
Returns the ObjectName.
|
WebAppContainer |
getParent()
Gets the parent container.
|
java.lang.String |
getRealPath(java.lang.String uri)
Maps from a URI to a real path.
|
java.lang.String |
getRealPathImpl(java.lang.String uri)
Maps from a URI to a real path.
|
java.util.ArrayList<java.lang.String> |
getRegexp()
Gets the regexp vars.
|
ServletRequestAttributeListener[] |
getRequestAttributeListeners()
Returns the request attribute listeners.
|
int |
getRequestCount()
Returns the request count.
|
RequestDispatcherImpl |
getRequestDispatcher(java.lang.String url)
Returns a dispatcher for the named servlet.
|
ServletRequestListener[] |
getRequestListeners()
Returns the request listeners.
|
RoleMapManager |
getRoleMapManager()
Returns the RoleMapManager
|
Path |
getRootDirectory()
Gets the webApp directory.
|
java.lang.String |
getSchema()
Returns the relax schema.
|
long |
getSendfileMinLength()
Returns the minimum length for a caching sendfile
|
ServletService |
getServer()
Gets the dispatch server.
|
java.util.ArrayList<java.lang.String> |
getServletIgnoreMappingPatterns()
Returns the best matching servlet pattern.
|
ServletMapper |
getServletMapper() |
java.util.ArrayList<java.lang.String> |
getServletMappingPatterns()
Returns the best matching servlet pattern.
|
java.lang.String |
getServletPattern(java.lang.String uri)
Returns the best matching servlet pattern.
|
ServletRegistration |
getServletRegistration(java.lang.String servletName)
Returs servlet registration using servletName
|
java.util.Map<java.lang.String,ServletRegistration> |
getServletRegistrations()
Returns servlet registrations
|
SessionCookieConfig |
getSessionCookieConfig()
Sets the session cookie configuration
|
SessionManager |
getSessionManager()
Gets the session manager.
|
long |
getSMaxAge(java.lang.String uri)
Returns the time for a cache mapping.
|
java.lang.String |
getState()
Returns true if the webApp is active.
|
boolean |
getStrictMapping()
Get the strict mapping setting.
|
java.util.ArrayList<JspTaglib> |
getTaglibList()
Returns the taglib configuration.
|
java.util.Collection<TaglibDescriptor> |
getTaglibs() |
static ServletRequest |
getThreadRequest() |
java.lang.String |
getURL()
Gets the URL
|
java.lang.String |
getVersion()
Returns the servlet version.
|
java.lang.String |
getWarName() |
java.util.ArrayList<WebAppConfig> |
getWebAppDefaultList()
Adds a web-app default
|
java.util.ArrayList<java.lang.String> |
getWelcomeFileList() |
boolean |
hasListener(java.util.ArrayList<?> listeners,
java.lang.Class<?> listenerClass)
Returns true if a listener with the given type exists.
|
boolean |
hasListener(java.lang.Class<?> listenerClass)
Returns true if a listener with the given type exists.
|
boolean |
hasPre23Config()
Returns true for JSP 1.x
|
void |
init()
Initializes.
|
void |
initAnnotated() |
void |
initWebFragments() |
boolean |
isActive()
Returns true if the webApp is active.
|
boolean |
isAllowForwardAfterFlush() |
boolean |
isAllowInitParamOverride() |
boolean |
isApplyingWebFragments() |
boolean |
isClosed()
Returns true if it's closed.
|
boolean |
isCompileContext() |
boolean |
isDeployError()
Returns true if the webApp deployed with an error.
|
boolean |
isDeployIdle()
Returns true if the deployment is idle.
|
boolean |
isDynamicDeploy()
Set true for a dynamically deployed server.
|
boolean |
isEnabled() |
boolean |
isFacesServletConfigured() |
boolean |
isIgnoreClientDisconnect()
Returns true if should ignore client disconnect.
|
boolean |
isInheritSession()
Gets inherit session.
|
boolean |
isInit()
Returns true if it's init.
|
boolean |
isInitializing()
Returns true if it's in the middle of initializing
|
boolean |
isMetadataComplete() |
boolean |
isModified()
Returns true if the webApp has been modified.
|
boolean |
isModifiedNow()
Returns true if the webApp has been modified.
|
boolean |
isMultipartFormEnabled()
Returns true if multipart forms are enabled.
|
java.lang.Boolean |
isRequestSecure() |
boolean |
isSecure() |
boolean |
isSendfileEnabled() |
boolean |
isVersionAlias() |
void |
log(java.lang.String message,
java.lang.Throwable e)
Error logging
|
boolean |
logModified(java.util.logging.Logger log)
Log the reason for modification.
|
void |
preConfigInit()
Initialization before configuration
|
void |
putLocaleEncoding(java.lang.String locale,
java.lang.String encoding)
Adds a locale-mapping
|
void |
runInSessionContext(java.lang.String sessionId,
java.lang.Runnable task)
Runs a thread in a session context
|
void |
setAccessLog(AbstractAccessLog log)
Sets the access log.
|
void |
setActiveWaitErrorPage(java.lang.String location)
Sets the error page waiting for a restart
|
void |
setActiveWaitTime(Period wait)
Sets the delay time waiting for a restart
|
void |
setAllowForwardAfterFlush(boolean allowForwardAfterFlush) |
void |
setAllowServletEL(boolean allow)
Sets the servlet init-param EL enabling.
|
void |
setAppDir(Path appDir)
Sets the webApp directory.
|
void |
setCompileContext(boolean isCompile) |
void |
setConfigException(java.lang.Throwable e)
Sets the config exception.
|
void |
setConfigNode(org.w3c.dom.Node node)
Sets the node for testing Servlet/JSP versions.
|
void |
setCookieHttpOnly(boolean isHttpOnly)
Sets the cookie-http-only
|
void |
setDescription(java.lang.String description)
A user description of the web-app
|
void |
setDirectoryServlet(java.lang.String className)
(compat) sets the directory servlet
|
void |
setDisableCrossContext(boolean isDisable)
If true, disables getContext().
|
void |
setDisableStart(boolean isDisable) |
void |
setDispatchWrapsFilters(boolean wrap)
Set true if includes wrap filters.
|
void |
setDistributable(boolean isDistributable) |
void |
setDocumentDirectory(Path appDir)
Sets the document directory (app-dir).
|
void |
setDynamicDeploy(boolean isDynamicDeploy)
Set true for a dynamically deployed server.
|
void |
setEnabled(boolean isEnabled) |
void |
setEnvironmentClassLoader(EnvironmentClassLoader loader)
Sets the environment class loader.
|
void |
setFormParameterMax(int max)
Sets the maximum number of form parameters
|
void |
setIcon(Icon icon)
Sets the icon
|
void |
setId(java.lang.String id)
The id is the context path.
|
void |
setIdleTime(Period idle)
Sets the delay time waiting for requests to end.
|
void |
setInheritSession(boolean isInheritSession)
Sets inherit session.
|
void |
setLazyServletValidate(boolean isLazy)
Lazy servlet validation.
|
void |
setLogin(Login login)
Sets the login
|
void |
setLoginConfig(LoginConfig loginConfig)
Sets the login
|
void |
setMetadataComplete(boolean metadataComplete) |
void |
setModuleName(java.lang.String moduleName) |
void |
setOldWebApp(WebApp oldWebApp,
long expireTime)
Sets the old version web-app.
|
void |
setParent(WebAppContainer parent)
Sets the parent container.
|
void |
setRedeployMode(DeployMode mode)
Sets the redeploy-mode of the controller
|
void |
setRegexp(java.util.ArrayList<java.lang.String> regexp)
Sets the regexp vars.
|
void |
setRootDirectory(Path appDir)
Sets the root directory (app-dir).
|
void |
setSchemaLocation(java.lang.String location)
Sets the schema location.
|
void |
setSecure(boolean isSecure)
Sets the secure requirement.
|
void |
setSessionTrackingModes(java.util.Set<SessionTrackingMode> modes)
The session tracking mode
|
void |
setShutdownWaitMax(Period wait)
Sets the delay time waiting for requests to end.
|
void |
setStatisticsEnable(boolean isEnable)
Enables detailed statistics
|
void |
setStrictMapping(boolean isStrict)
Set true if strict mapping.
|
void |
setTempDir(Path path)
Sets the temporary directory
|
void |
setVersion(java.lang.String version)
Sets the servlet version.
|
void |
start()
Starts the deployment instance
|
void |
stop()
Stops the webApp.
|
java.lang.String |
toString() |
addAttributeListener, declareRoles, getAttribute, getAttributeNames, getCauchoPath, getEffectiveMajorVersion, getEffectiveMinorVersion, getInitParameter, getInitParameterNames, getMajorVersion, getMinorVersion, getResource, getResource, getResourceAsStream, getResourcePaths, getServerInfo, getServlet, getServletContextName, getServletNames, getServlets, log, log, removeAttribute, setAttribute, setDisplayName, setInitParam, setInitParameter
getDefaultSessionTrackingModes, getEffectiveSessionTrackingModes, setSessionTrackingModes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefaultSessionTrackingModes, getEffectiveSessionTrackingModes
public void preConfigInit()
preConfigInit
in interface EnvironmentDeployInstance
public void setParent(WebAppContainer parent)
public void setDynamicDeploy(boolean isDynamicDeploy)
public boolean isDynamicDeploy()
public WebAppContainer getParent()
public Host getHost()
public static WebApp getLocal()
public static WebApp getCurrent()
public ServletService getServer()
public WebAppController getController()
public java.lang.String getModuleName()
public void setModuleName(java.lang.String moduleName)
public InvocationDecoder getInvocationDecoder()
public InjectManager getBeanManager()
public void setId(java.lang.String id)
public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface DeployInstance
getClassLoader
in interface EnvironmentBean
getClassLoader
in interface ServletContext
getClassLoader
in class ServletContextImpl
public void setEnvironmentClassLoader(EnvironmentClassLoader loader)
public EnvironmentClassLoader getEnvironmentClassLoader()
@Configurable public void setRedeployMode(DeployMode mode)
public java.lang.String getSchema()
getSchema
in interface SchemaBean
@Configurable public void setStatisticsEnable(boolean isEnable)
public void setConfigNode(org.w3c.dom.Node node)
public Path getRootDirectory()
getRootDirectory
in class ServletContextImpl
public DependencyContainer getInvocationDependency()
public void setRegexp(java.util.ArrayList<java.lang.String> regexp)
public java.util.ArrayList<java.lang.String> getRegexp()
public void setDocumentDirectory(Path appDir)
@Configurable public void setRootDirectory(Path appDir)
public void setAppDir(Path appDir)
public javax.management.ObjectName getObjectName()
public java.lang.String getWarName()
public java.lang.String getContextPath()
getContextPath
in interface ServletContext
getContextPath
in class ServletContextImpl
@Configurable public void setVersion(java.lang.String version)
public java.lang.String getVersion()
public void setSchemaLocation(java.lang.String location)
public void setDisableStart(boolean isDisable)
public void setEnabled(boolean isEnabled)
public boolean isEnabled()
public boolean isMetadataComplete()
public void setMetadataComplete(boolean metadataComplete)
@Configurable public void setDistributable(boolean isDistributable)
public java.lang.String getURL()
public java.lang.String getId()
public java.lang.String getHostName()
public HostMXBean getHostAdmin()
public java.lang.String getDescription()
@Configurable public void setDescription(java.lang.String description)
@Configurable public void setIcon(Icon icon)
@Configurable public void setAllowServletEL(boolean allow)
@Configurable public boolean isAllowForwardAfterFlush()
public void setAllowForwardAfterFlush(boolean allowForwardAfterFlush)
@Configurable public void setDisableCrossContext(boolean isDisable)
public void setCompileContext(boolean isCompile)
public boolean isCompileContext()
public boolean isVersionAlias()
public void setOldWebApp(WebApp oldWebApp, long expireTime)
public Ordering createAbsoluteOrdering()
@Configurable public Ordering createOrdering()
public ServletConfigImpl createServlet() throws ServletException
ServletException
@Configurable public void addServlet(ServletConfigImpl config) throws ServletException
ServletException
public <T extends Servlet> T createServlet(java.lang.Class<T> servletClass) throws ServletException
ServletContext
createServlet
in interface ServletContext
createServlet
in class ServletContextImpl
ServletException
public void addServlet(WebServlet webServlet, java.lang.String servletClassName) throws ServletException
ServletException
public ServletRegistration.Dynamic addServlet(java.lang.String servletName, java.lang.String className)
ServletContext
addServlet
in interface ServletContext
addServlet
in class ServletContextImpl
public ServletRegistration.Dynamic addServlet(java.lang.String servletName, java.lang.Class<? extends Servlet> servletClass)
ServletContext
addServlet
in interface ServletContext
addServlet
in class ServletContextImpl
public ServletRegistration.Dynamic addServlet(java.lang.String servletName, Servlet servlet)
ServletContext
addServlet
in interface ServletContext
addServlet
in class ServletContextImpl
public ServletRegistration getServletRegistration(java.lang.String servletName)
ServletContext
getServletRegistration
in interface ServletContext
getServletRegistration
in class ServletContextImpl
public java.util.Map<java.lang.String,ServletRegistration> getServletRegistrations()
ServletContext
getServletRegistrations
in interface ServletContext
getServletRegistrations
in class ServletContextImpl
public <T extends Filter> T createFilter(java.lang.Class<T> filterClass) throws ServletException
ServletContext
createFilter
in interface ServletContext
createFilter
in class ServletContextImpl
ServletException
public void addFilter(WebFilter webFilter, java.lang.String filterClassName) throws java.lang.Exception
java.lang.Exception
public FilterRegistration.Dynamic addFilter(java.lang.String filterName, java.lang.String className)
ServletContext
addFilter
in interface ServletContext
addFilter
in class ServletContextImpl
public FilterRegistration.Dynamic addFilter(java.lang.String filterName, java.lang.Class<? extends Filter> filterClass)
ServletContext
addFilter
in interface ServletContext
addFilter
in class ServletContextImpl
public FilterRegistration.Dynamic addFilter(java.lang.String filterName, Filter filter)
ServletContext
addFilter
in interface ServletContext
addFilter
in class ServletContextImpl
public java.lang.String getCharacterEncoding()
@Configurable public void setStrictMapping(boolean isStrict) throws ServletException
ServletException
public boolean getStrictMapping()
@Configurable public void setLazyServletValidate(boolean isLazy)
public ServletMapping createServletMapping()
@Configurable public void addServletMapping(ServletMapping servletMapping) throws ServletException
ServletException
@Configurable public void addServletRegexp(ServletRegexp servletRegexp) throws ServletException, java.lang.ClassNotFoundException
ServletException
java.lang.ClassNotFoundException
@Configurable public void addFilter(FilterConfigImpl config)
@Configurable public void addFilterMapping(FilterMapping filterMapping) throws ServletException
ServletException
public FilterRegistration getFilterRegistration(java.lang.String filterName)
ServletContext
getFilterRegistration
in interface ServletContext
getFilterRegistration
in class ServletContextImpl
public java.util.Map<java.lang.String,? extends FilterRegistration> getFilterRegistrations()
getFilterRegistrations
in interface ServletContext
getFilterRegistrations
in class ServletContextImpl
public void addPersistenceContextRef(PersistenceContextRefConfig persistenceContextRefConfig) throws ServletException
ServletException
@Configurable public void setDispatchWrapsFilters(boolean wrap)
public boolean getDispatchWrapsFilters()
public void setDirectoryServlet(java.lang.String className) throws java.lang.Exception
java.lang.Exception
@Configurable public void addWelcomeFileList(WelcomeFileList list)
public java.util.ArrayList<java.lang.String> getWelcomeFileList()
@Configurable public LocaleEncodingMappingList createLocaleEncodingMappingList()
public void setInheritSession(boolean isInheritSession)
public boolean isInheritSession()
public SessionManager createSessionConfig() throws java.lang.Exception
java.lang.Exception
@Configurable public void addSessionConfig(SessionManager manager) throws ConfigException
ConfigException
@Configurable public void setCookieHttpOnly(boolean isHttpOnly)
public boolean getCookieHttpOnly()
public void setSessionTrackingModes(java.util.Set<SessionTrackingMode> modes)
ServletContext
setSessionTrackingModes
in interface ServletContext
setSessionTrackingModes
in class ServletContextImpl
public InitParam createContextParam()
@Configurable public void addContextParam(InitParam initParam)
@Configurable public void addErrorPage(ErrorPage errorPage)
public AccessLog createAccessLog()
@Configurable public void setAccessLog(AbstractAccessLog log)
@Configurable public void add(AbstractAccessLog log)
@Configurable public void setFormParameterMax(int max)
public int getFormParameterMax()
@Configurable public void addMimeMapping(MimeMapping mimeMapping)
public void putLocaleEncoding(java.lang.String locale, java.lang.String encoding)
public java.lang.String getLocaleEncoding(java.util.Locale locale)
public void setLoginConfig(LoginConfig loginConfig)
public void setLogin(Login login)
public RoleMapManager getRoleMapManager()
public void add(RewriteFilter filter)
public void add(DispatchRule rule)
public RewriteDispatch createRewriteDispatch()
public void addRewriteDispatch(RewriteDispatch dispatch)
public RewriteRealPath createRewriteRealPath()
public void addPathMapping(PathMapping pathMapping) throws java.lang.Exception
java.lang.Exception
public void addSecurityConstraint(SecurityConstraint constraint)
public void add(SecurityConstraint constraint)
public void addSecurityRole(SecurityRole role)
@Configurable public void setSecure(boolean isSecure)
public boolean isSecure()
public java.lang.Boolean isRequestSecure()
public <T extends java.util.EventListener> T createListener(java.lang.Class<T> listenerClass) throws ServletException
createListener
in interface ServletContext
createListener
in class ServletContextImpl
ServletException
public void addListener(java.lang.String className)
addListener
in interface ServletContext
addListener
in class ServletContextImpl
public void addListener(java.lang.Class<? extends java.util.EventListener> listenerClass)
addListener
in interface ServletContext
addListener
in class ServletContextImpl
public <T extends java.util.EventListener> void addListener(T listener)
addListener
in interface ServletContext
addListener
in class ServletContextImpl
@Configurable public void addListener(ListenerConfig listener) throws java.lang.Exception
addListener
in class ServletContextImpl
java.lang.Exception
public boolean hasListener(java.lang.Class<?> listenerClass)
public boolean hasListener(java.util.ArrayList<?> listeners, java.lang.Class<?> listenerClass)
public ServletRequestListener[] getRequestListeners()
public ServletRequestAttributeListener[] getRequestAttributeListeners()
public void addResourceRef(ResourceRef ref)
@Configurable public MultipartForm createMultipartForm()
public boolean isMultipartFormEnabled()
public long getFormUploadMax()
public long getFormParameterLengthMax()
public AbstractAccessLog getAccessLog()
public void setTempDir(Path path)
@Configurable public JspPropertyGroup createJsp()
public JspPropertyGroup getJsp()
public boolean isFacesServletConfigured()
public JspApplicationContextImpl getJspApplicationContext()
public boolean hasPre23Config()
@Configurable public void addTaglib(JspTaglib taglib)
public java.util.ArrayList<JspTaglib> getTaglibList()
public java.util.Collection<TaglibDescriptor> getTaglibs()
getTaglibs
in interface JspConfigDescriptor
public java.util.Collection<JspPropertyGroupDescriptor> getJspPropertyGroups()
getJspPropertyGroups
in interface JspConfigDescriptor
public JspConfig createJspConfig()
public void addJspConfig(JspConfig config)
public JspConfigDescriptor getJspConfigDescriptor()
getJspConfigDescriptor
in interface ServletContext
getJspConfigDescriptor
in class ServletContextImpl
public java.lang.Object getExtension(java.lang.String key)
public EjbRef createEjbRef()
public EjbLocalRef createEjbLocalRef()
public WebAppExpandDeployGenerator createWebAppDeploy()
@Configurable public void addWebAppDeploy(WebAppExpandDeployGenerator deploy) throws java.lang.Exception
java.lang.Exception
@Configurable public void addWebAppDefault(WebAppConfig config)
public java.util.ArrayList<WebAppConfig> getWebAppDefaultList()
@Configurable public void addWebApp(WebAppConfig config) throws java.lang.Exception
java.lang.Exception
public void setConfigException(java.lang.Throwable e)
setConfigException
in interface DeployInstance
public java.lang.Throwable getConfigException()
getConfigException
in interface DeployInstance
public boolean isIgnoreClientDisconnect()
@Configurable public void setShutdownWaitMax(Period wait)
@Configurable public void setActiveWaitTime(Period wait)
public long getActiveWaitTime()
@Configurable public void setActiveWaitErrorPage(java.lang.String location)
@Configurable public void setIdleTime(Period idle)
public void addConfigFile(Path path) throws java.lang.Exception
java.lang.Exception
public boolean isSendfileEnabled()
public void addSendfileCount()
public long getSendfileMinLength()
public java.lang.String getState()
public boolean isInit()
public boolean isInitializing()
public boolean isActive()
isActive
in class ServletContextImpl
public boolean isClosed()
public static ServletRequest getThreadRequest()
@PostConstruct public void init() throws java.lang.Exception
init
in interface EnvironmentDeployInstance
java.lang.Exception
public void initWebFragments()
public boolean isApplyingWebFragments()
public boolean isAllowInitParamOverride()
public void initAnnotated() throws java.lang.Exception
java.lang.Exception
public WebAppAdmin getAdmin()
public void start()
DeployInstance
start
in interface DeployInstance
public boolean isModified()
isModified
in interface DeployInstance
isModified
in interface Dependency
public boolean isModifiedNow()
isModifiedNow
in interface DeployInstance
public boolean logModified(java.util.logging.Logger log)
logModified
in interface DeployInstance
logModified
in interface Dependency
public boolean isDeployError()
public boolean isDeployIdle()
isDeployIdle
in interface DeployInstance
public ServletContext getContext(java.lang.String uri)
getContext
in interface ServletContext
getContext
in class ServletContextImpl
uri
- path relative to the rootpublic java.lang.String getServletPattern(java.lang.String uri)
public java.util.ArrayList<java.lang.String> getServletMappingPatterns()
public java.util.ArrayList<java.lang.String> getServletIgnoreMappingPatterns()
public Invocation buildInvocation(Invocation invocation)
buildInvocation
in interface InvocationBuilder
public Invocation buildInvocation(Invocation invocation, boolean isTop)
public ServletMapper getServletMapper()
public void clearCache()
public void buildIncludeInvocation(Invocation invocation) throws ServletException
ServletException
public void buildForwardInvocation(Invocation invocation) throws ServletException
ServletException
public void buildErrorInvocation(Invocation invocation) throws ServletException
ServletException
public void buildLoginInvocation(Invocation invocation) throws ServletException
ServletException
public void buildDispatchInvocation(Invocation invocation) throws ServletException
ServletException
public void buildDispatchInvocation(Invocation invocation, FilterMapper filterMapper) throws ServletException
ServletException
public RequestDispatcherImpl getRequestDispatcher(java.lang.String url)
getRequestDispatcher
in interface ServletContext
getRequestDispatcher
in class ServletContextImpl
url
- path relative to the app root (including query string)
for the included file.public void accessLog(HttpServletRequest req, HttpServletResponse res)
public RequestDispatcher getLoginDispatcher(java.lang.String url)
public RequestDispatcher getNamedDispatcher(java.lang.String servletName)
getNamedDispatcher
in interface ServletContext
getNamedDispatcher
in class ServletContextImpl
servletName
- the servlet name to include or forward to.public java.lang.String getRealPath(java.lang.String uri)
getRealPath
in interface ServletContext
getRealPath
in class ServletContextImpl
uri
- path relative to the application root to be translated.public java.lang.String getRealPathImpl(java.lang.String uri)
public java.lang.String getMimeType(java.lang.String uri)
getMimeType
in interface ServletContext
getMimeType
in class ServletContextImpl
uri
- path relative to the application root.public java.lang.String getMimeTypeImpl(java.lang.String ext)
public void log(java.lang.String message, java.lang.Throwable e)
log
in interface ServletContext
log
in class ServletContextImpl
message
- message to loge
- stack trace of the errorpublic Login getLogin()
public Login getConfiguredLogin()
public Authenticator getAuthenticator()
public Authenticator getConfiguredAuthenticator()
public SessionCookieConfig getSessionCookieConfig()
ServletContextCompat
getSessionCookieConfig
in interface ServletContext
getSessionCookieConfig
in class ServletContextCompat
public SessionManager getSessionManager()
public ErrorPageManager getErrorPageManager()
public int getRequestCount()
public void addCacheMapping(CacheMapping mapping) throws java.lang.Exception
java.lang.Exception
public long getMaxAge(java.lang.String uri)
public long getSMaxAge(java.lang.String uri)
public long getCacheMaxLength()
public java.lang.String[] getClassLoaderHackPackages()
public int getActiveSessionCount()
public java.lang.String generateCookieDomain(HttpServletRequest request)
public void runInSessionContext(java.lang.String sessionId, java.lang.Runnable task)
public void stop()
public void destroy()
destroy
in interface DeployInstance
public void addStatus500()
public java.lang.String toString()
toString
in class java.lang.Object