com.caucho.server.webapp
Class WebApp

java.lang.Object
  extended by com.caucho.server.webapp.ServletContextImpl
      extended by com.caucho.server.webapp.WebApp
All Implemented Interfaces:
SchemaBean, EnvironmentBean, DeployInstance, EnvironmentDeployInstance, DispatchBuilder, Dependency, ServletContext
Direct Known Subclasses:
Application

public class WebApp
extends ServletContextImpl
implements Dependency, EnvironmentBean, SchemaBean, DispatchBuilder, EnvironmentDeployInstance

Resin's webApp implementation.


Constructor Summary
WebApp(Path rootDirectory)
          Creates the webApp with its environment loader.
 
Method Summary
 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.
 void addFilterMapping(FilterMapping filterMapping)
          Adds a filter-mapping configuration.
 void addJspConfig(JspConfig config)
          jsp-config configuration
 void addListener(Listener 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 addSecurityConstraint(SecurityConstraint constraint)
          Adds a security constraint
 void addSecurityRole(SecurityRole role)
          Adds a security role
 void addServlet(ServletConfigImpl config)
          Adds a servlet configuration.
 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, 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.
 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.
 AccessLog createAccessLog()
          Sets the access log.
 InitParam createContextParam()
          Sets an init-param
 EjbLocalRef createEjbLocalRef()
          ejb-local-ref configuration
 EjbRef createEjbRef()
          ejb-ref configuration
 JspPropertyGroup createJsp()
          jsp configuration
 JspConfig createJspConfig()
           
 LocaleEncodingMappingList createLocaleEncodingMappingList()
          Configures the locale encoding.
 MultipartForm createMultipartForm()
          Multipart form config.
 RewriteDispatch createRewriteDispatch()
          Adds rewrite-dispatch.
 RewriteRealPath createRewriteRealPath()
          Adds rewrite-real-path.
 ServletConfigImpl createServlet()
          Adds a servlet configuration.
 ServletMapping createServletMapping()
           
 SessionManager createSessionConfig()
          Configures the session manager.
 WebAppExpandDeployGenerator createWebAppDeploy()
          Sets the war-expansion
 void destroy()
          Closes the webApp.
 boolean doMultipartForm()
          Returns true if multipart forms are enabled.
 AbstractAccessLog getAccessLog()
          Returns the access log
 int getActiveSessionCount()
          Returns the active session count.
 WebAppAdmin getAdmin()
           
 Path getAppDir()
          Gets the webApp directory.
 ServletAuthenticator getAuthenticator()
          Gets the authenticator
 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.
 Cluster getCluster()
          Returns the current cluster.
 java.lang.Throwable getConfigException()
          Gets the config exception.
 ServletContext getContext(java.lang.String uri)
          Returns the servlet context for the URI.
 java.lang.String getContextPath()
          Gets the context path
 boolean getCookieHttpOnly()
          Sets the cookie-http-only
 java.lang.String getDescription()
          A user description of the web-app
 DispatchServer getDispatchServer()
          Gets the dispatch server.
 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.
 long getFormUploadMax()
          Returns the form upload max.
 HostMXBean getHostAdmin()
          Gets the URL
 java.lang.String getHostName()
          Gets the URL
 DependencyContainer getInvocationDependency()
          Gets the dependency container
 JspPropertyGroup getJsp()
          Returns the JSP configuration.
 JspApplicationContextImpl getJspApplicationContext()
          Returns the JspApplicationContext for EL evaluation.
static WebApp getLocal()
          Returns the local webApp.
 java.lang.String getLocaleEncoding(java.util.Locale locale)
          Returns the locale encoding.
 AbstractLogin 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.
 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.
 RequestDispatcher getRequestDispatcher(java.lang.String url)
          Returns a dispatcher for the named servlet.
 ServletRequestListener[] getRequestListeners()
          Returns the request listeners.
 java.lang.String getSchema()
          Returns the relax schema.
 Server getServer()
          Gets the dispatch server.
 java.util.ArrayList<java.lang.String> getServletIgnoreMappingPatterns()
          Returns the best matching servlet pattern.
 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.
 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.
static ServletRequest getThreadRequest()
           
 java.lang.String getURL()
          Gets the URL
 java.lang.String getVersion()
          Returns the servlet version.
 java.util.ArrayList<WebAppConfig> getWebAppDefaultList()
          Adds a web-app default
 boolean has23Config()
          Returns true for JSP 1.x
 boolean hasListener(java.lang.Class listenerClass)
          Returns true if a listener with the given type exists.
 void init()
          Initializes.
 boolean isActive()
          Returns true if the webApp is active.
 boolean isClosed()
          Returns true if it's closed.
 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 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 isModified()
          Returns true if the webApp has been modified.
 boolean isModifiedNow()
          Returns true if the webApp has been modified.
 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 putLocaleEncoding(java.lang.String locale, java.lang.String encoding)
          Adds a locale-mapping
 void setAccessLog(AbstractAccessLog log)
          Sets the access log.
 void setActiveWaitTime(Period wait)
          Sets the delay time waiting for a restart
 void setAllowServletEL(boolean allow)
          Sets the servlet init-param EL enabling.
 void setAppDir(Path appDir)
          Sets the webApp directory.
 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 setDispatchWrapsFilters(boolean wrap)
          Set true if includes wrap filters.
 void setDocumentDirectory(Path appDir)
          Sets the document directory (app-dir).
 void setDynamicDeploy(boolean isDynamicDeploy)
          Set true for a dynamically deployed server.
 void setEnvironmentClassLoader(EnvironmentClassLoader loader)
          Sets the environment class loader.
 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 setLoginConfig(LoginConfig loginConfig)
          Sets the login
 void setOldWebApp(WebApp oldWebApp, long expireTime)
          Sets the old version web-app.
 void setParent(WebAppContainer parent)
          Sets the parent container.
 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 setShutdownWaitMax(Period wait)
          Sets the delay time waiting for requests to end.
 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()
           
 
Methods inherited from class com.caucho.server.webapp.ServletContextImpl
addAttributeListener, getAttribute, getAttributeNames, getInitParameter, getInitParameterNames, getMajorVersion, getMinorVersion, getResource, getResourceAsStream, getResourcePaths, getServerInfo, getServlet, getServletContextName, getServletNames, getServlets, log, log, removeAttribute, setAttribute, setDisplayName, setInitParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebApp

public WebApp(Path rootDirectory)
Creates the webApp with its environment loader.

Method Detail

setParent

public void setParent(WebAppContainer parent)
Sets the parent container.


setDynamicDeploy

public void setDynamicDeploy(boolean isDynamicDeploy)
Set true for a dynamically deployed server.


isDynamicDeploy

public boolean isDynamicDeploy()
Set true for a dynamically deployed server.


getParent

public WebAppContainer getParent()
Gets the parent container.


getLocal

public static WebApp getLocal()
Returns the local webApp.


getDispatchServer

public DispatchServer getDispatchServer()
Gets the dispatch server.


getServer

public Server getServer()
Gets the dispatch server.


setId

public void setId(java.lang.String id)
The id is the context path.


getClassLoader

public java.lang.ClassLoader getClassLoader()
Gets the environment class loader.

Specified by:
getClassLoader in interface EnvironmentBean
Specified by:
getClassLoader in interface DeployInstance

setEnvironmentClassLoader

public void setEnvironmentClassLoader(EnvironmentClassLoader loader)
Sets the environment class loader.


getEnvironmentClassLoader

public EnvironmentClassLoader getEnvironmentClassLoader()
Gets the environment class loader.


getSchema

public java.lang.String getSchema()
Returns the relax schema.

Specified by:
getSchema in interface SchemaBean

setConfigNode

public void setConfigNode(org.w3c.dom.Node node)
Sets the node for testing Servlet/JSP versions.


getAppDir

public Path getAppDir()
Gets the webApp directory.

Overrides:
getAppDir in class ServletContextImpl

getInvocationDependency

public DependencyContainer getInvocationDependency()
Gets the dependency container


setRegexp

public void setRegexp(java.util.ArrayList<java.lang.String> regexp)
Sets the regexp vars.


getRegexp

public java.util.ArrayList<java.lang.String> getRegexp()
Gets the regexp vars.


setDocumentDirectory

public void setDocumentDirectory(Path appDir)
Sets the document directory (app-dir).


setRootDirectory

public void setRootDirectory(Path appDir)
Sets the root directory (app-dir).

Specified by:
setRootDirectory in interface EnvironmentDeployInstance

setAppDir

public void setAppDir(Path appDir)
Sets the webApp directory.


getObjectName

public javax.management.ObjectName getObjectName()
Returns the ObjectName.


getContextPath

public java.lang.String getContextPath()
Gets the context path

Specified by:
getContextPath in interface ServletContext
Overrides:
getContextPath in class ServletContextImpl

setVersion

public void setVersion(java.lang.String version)
Sets the servlet version.


getVersion

public java.lang.String getVersion()
Returns the servlet version.


setSchemaLocation

public void setSchemaLocation(java.lang.String location)
Sets the schema location.


getURL

public java.lang.String getURL()
Gets the URL


getHostName

public java.lang.String getHostName()
Gets the URL


getHostAdmin

public HostMXBean getHostAdmin()
Gets the URL


getDescription

public java.lang.String getDescription()
A user description of the web-app


setDescription

public void setDescription(java.lang.String description)
A user description of the web-app


setIcon

public void setIcon(Icon icon)
Sets the icon


setAllowServletEL

public void setAllowServletEL(boolean allow)
Sets the servlet init-param EL enabling.


setDisableCrossContext

public void setDisableCrossContext(boolean isDisable)
If true, disables getContext().


setOldWebApp

public void setOldWebApp(WebApp oldWebApp,
                         long expireTime)
Sets the old version web-app.


createServlet

public ServletConfigImpl createServlet()
                                throws ServletException
Adds a servlet configuration.

Throws:
ServletException

addServlet

public void addServlet(ServletConfigImpl config)
                throws ServletException
Adds a servlet configuration.

Throws:
ServletException

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Returns the character encoding.


setStrictMapping

public void setStrictMapping(boolean isStrict)
                      throws ServletException
Set true if strict mapping.

Throws:
ServletException

getStrictMapping

public boolean getStrictMapping()
Get the strict mapping setting.


setLazyServletValidate

public void setLazyServletValidate(boolean isLazy)
Lazy servlet validation.


createServletMapping

public ServletMapping createServletMapping()

addServletMapping

public void addServletMapping(ServletMapping servletMapping)
                       throws ServletException
Adds a servlet-mapping configuration.

Throws:
ServletException

addServletRegexp

public void addServletRegexp(ServletRegexp servletRegexp)
                      throws ServletException,
                             java.lang.ClassNotFoundException
Adds a servlet-regexp configuration.

Throws:
ServletException
java.lang.ClassNotFoundException

addFilter

public void addFilter(FilterConfigImpl config)
Adds a filter configuration.


addFilterMapping

public void addFilterMapping(FilterMapping filterMapping)
                      throws ServletException
Adds a filter-mapping configuration.

Throws:
ServletException

addPersistenceContextRef

public void addPersistenceContextRef(PersistenceContextRefConfig persistenceContextRefConfig)
                              throws ServletException
Adds a persistence-context-ref configuration.

Throws:
ServletException

setDispatchWrapsFilters

public void setDispatchWrapsFilters(boolean wrap)
Set true if includes wrap filters.


getDispatchWrapsFilters

public boolean getDispatchWrapsFilters()
Get true if includes wrap filters.


setDirectoryServlet

public void setDirectoryServlet(java.lang.String className)
                         throws java.lang.Exception
(compat) sets the directory servlet

Throws:
java.lang.Exception

addWelcomeFileList

public void addWelcomeFileList(WelcomeFileList list)
Adds a welcome file list to the webApp.


createLocaleEncodingMappingList

public LocaleEncodingMappingList createLocaleEncodingMappingList()
Configures the locale encoding.


setInheritSession

public void setInheritSession(boolean isInheritSession)
Sets inherit session.


isInheritSession

public boolean isInheritSession()
Gets inherit session.


createSessionConfig

public SessionManager createSessionConfig()
                                   throws java.lang.Exception
Configures the session manager.

Throws:
java.lang.Exception

addSessionConfig

public void addSessionConfig(SessionManager manager)
                      throws ConfigException
Adds the session manager.

Throws:
ConfigException

setCookieHttpOnly

public void setCookieHttpOnly(boolean isHttpOnly)
Sets the cookie-http-only


getCookieHttpOnly

public boolean getCookieHttpOnly()
Sets the cookie-http-only


createContextParam

public InitParam createContextParam()
Sets an init-param


addContextParam

public void addContextParam(InitParam initParam)
Sets the context param


addErrorPage

public void addErrorPage(ErrorPage errorPage)
Adds an error page


createAccessLog

public AccessLog createAccessLog()
Sets the access log.


setAccessLog

public void setAccessLog(AbstractAccessLog log)
Sets the access log.


addMimeMapping

public void addMimeMapping(MimeMapping mimeMapping)
Adds a mime-mapping


putLocaleEncoding

public void putLocaleEncoding(java.lang.String locale,
                              java.lang.String encoding)
Adds a locale-mapping


getLocaleEncoding

public java.lang.String getLocaleEncoding(java.util.Locale locale)
Returns the locale encoding.


createRewriteDispatch

public RewriteDispatch createRewriteDispatch()
Adds rewrite-dispatch.


createRewriteRealPath

public RewriteRealPath createRewriteRealPath()
Adds rewrite-real-path.


addPathMapping

public void addPathMapping(PathMapping pathMapping)
                    throws java.lang.Exception
Adds a path-mapping

Throws:
java.lang.Exception

setLoginConfig

public void setLoginConfig(LoginConfig loginConfig)
                    throws java.lang.Throwable
Sets the login

Throws:
java.lang.Throwable

addSecurityConstraint

public void addSecurityConstraint(SecurityConstraint constraint)
Adds a security constraint


addSecurityRole

public void addSecurityRole(SecurityRole role)
Adds a security role


setSecure

public void setSecure(boolean isSecure)
Sets the secure requirement.


addListener

public void addListener(Listener listener)
                 throws java.lang.Exception
Throws:
java.lang.Exception

hasListener

public boolean hasListener(java.lang.Class listenerClass)
Returns true if a listener with the given type exists.


getRequestListeners

public ServletRequestListener[] getRequestListeners()
Returns the request listeners.


getRequestAttributeListeners

public ServletRequestAttributeListener[] getRequestAttributeListeners()
Returns the request attribute listeners.


addResourceRef

public void addResourceRef(ResourceRef ref)
Adds a ResourceRef validator.


createMultipartForm

public MultipartForm createMultipartForm()
Multipart form config.


doMultipartForm

public boolean doMultipartForm()
Returns true if multipart forms are enabled.


getFormUploadMax

public long getFormUploadMax()
Returns the form upload max.


getAccessLog

public AbstractAccessLog getAccessLog()
Returns the access log


setTempDir

public void setTempDir(Path path)
Sets the temporary directory


createJsp

public JspPropertyGroup createJsp()
jsp configuration


getJsp

public JspPropertyGroup getJsp()
Returns the JSP configuration.


getJspApplicationContext

public JspApplicationContextImpl getJspApplicationContext()
Returns the JspApplicationContext for EL evaluation.


has23Config

public boolean has23Config()
Returns true for JSP 1.x


addTaglib

public void addTaglib(JspTaglib taglib)
taglib configuration


getTaglibList

public java.util.ArrayList<JspTaglib> getTaglibList()
Returns the taglib configuration.


createJspConfig

public JspConfig createJspConfig()

addJspConfig

public void addJspConfig(JspConfig config)
jsp-config configuration


getExtension

public java.lang.Object getExtension(java.lang.String key)
Returns an extension.


createEjbRef

public EjbRef createEjbRef()
ejb-ref configuration


createEjbLocalRef

public EjbLocalRef createEjbLocalRef()
ejb-local-ref configuration


createWebAppDeploy

public WebAppExpandDeployGenerator createWebAppDeploy()
Sets the war-expansion


addWebAppDeploy

public void addWebAppDeploy(WebAppExpandDeployGenerator deploy)
                     throws java.lang.Exception
Adds a war generator

Throws:
java.lang.Exception

addWebAppDefault

public void addWebAppDefault(WebAppConfig config)
Adds a web-app default


getWebAppDefaultList

public java.util.ArrayList<WebAppConfig> getWebAppDefaultList()
Adds a web-app default


addWebApp

public void addWebApp(WebAppConfig config)
               throws java.lang.Exception
Adds a sub web-app

Throws:
java.lang.Exception

setConfigException

public void setConfigException(java.lang.Throwable e)
Sets the config exception.

Specified by:
setConfigException in interface DeployInstance

getConfigException

public java.lang.Throwable getConfigException()
Gets the config exception.

Specified by:
getConfigException in interface DeployInstance

getCluster

public Cluster getCluster()
Returns the current cluster.


isIgnoreClientDisconnect

public boolean isIgnoreClientDisconnect()
Returns true if should ignore client disconnect.


setShutdownWaitMax

public void setShutdownWaitMax(Period wait)
Sets the delay time waiting for requests to end.


setActiveWaitTime

public void setActiveWaitTime(Period wait)
Sets the delay time waiting for a restart


setIdleTime

public void setIdleTime(Period idle)
Sets the delay time waiting for requests to end.


addConfigFile

public void addConfigFile(Path path)
                   throws java.lang.Exception
Backwards compatability for config-file.

Throws:
java.lang.Exception

getState

public java.lang.String getState()
Returns true if the webApp is active.


isInit

public boolean isInit()
Returns true if it's init.


isInitializing

public boolean isInitializing()
Returns true if it's in the middle of initializing


isActive

public boolean isActive()
Returns true if the webApp is active.


isClosed

public boolean isClosed()
Returns true if it's closed.


getThreadRequest

public static ServletRequest getThreadRequest()

init

public void init()
          throws java.lang.Exception
Initializes.

Specified by:
init in interface EnvironmentDeployInstance
Throws:
java.lang.Exception

getAdmin

public WebAppAdmin getAdmin()

start

public void start()
Description copied from interface: DeployInstance
Starts the deployment instance

Specified by:
start in interface DeployInstance

isModified

public boolean isModified()
Returns true if the webApp has been modified.

Specified by:
isModified in interface DeployInstance
Specified by:
isModified in interface Dependency

isModifiedNow

public boolean isModifiedNow()
Returns true if the webApp has been modified.

Specified by:
isModifiedNow in interface DeployInstance

logModified

public boolean logModified(java.util.logging.Logger log)
Log the reason for modification.

Specified by:
logModified in interface DeployInstance
Specified by:
logModified in interface Dependency

isDeployError

public boolean isDeployError()
Returns true if the webApp deployed with an error.

Specified by:
isDeployError in interface DeployInstance

isDeployIdle

public boolean isDeployIdle()
Returns true if the deployment is idle.

Specified by:
isDeployIdle in interface DeployInstance

getContext

public ServletContext getContext(java.lang.String uri)
Returns the servlet context for the URI.

Specified by:
getContext in interface ServletContext
Overrides:
getContext in class ServletContextImpl
Parameters:
uri - path relative to the root
Returns:
the ServletContext responsible for the given uri.

getServletPattern

public java.lang.String getServletPattern(java.lang.String uri)
Returns the best matching servlet pattern.


getServletMappingPatterns

public java.util.ArrayList<java.lang.String> getServletMappingPatterns()
Returns the best matching servlet pattern.


getServletIgnoreMappingPatterns

public java.util.ArrayList<java.lang.String> getServletIgnoreMappingPatterns()
Returns the best matching servlet pattern.


buildInvocation

public Invocation buildInvocation(Invocation invocation)
Fills the servlet instance. (Generalize?)

Specified by:
buildInvocation in interface DispatchBuilder

clearCache

public void clearCache()
Clears all caches, including the invocation cache, the filter cache, and the proxy cache.


buildIncludeInvocation

public void buildIncludeInvocation(Invocation invocation)