Java Doc for WebApp.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » server » webapp » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » resin » com.caucho.server.webapp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.server.webapp.ServletContextImpl
      com.caucho.server.webapp.WebApp

All known Subclasses:   com.caucho.server.webapp.Application,
WebApp
public class WebApp extends ServletContextImpl implements Dependency,EnvironmentBean,SchemaBean,DispatchBuilder,EnvironmentDeployInstance,java.io.Serializable(Code)
Resin's webApp implementation.

Inner Class :static class FilterChainEntry

Field Summary
static  String[]_classLoaderHackPackages
    

Constructor Summary
public  WebApp(Path rootDirectory)
     Creates the webApp with its environment loader.
 WebApp(WebAppController controller)
     Creates the webApp with its environment loader.

Method Summary
public  voidaccessLog(HttpServletRequest req, HttpServletResponse res)
    
public  voidaddCacheMapping(CacheMapping mapping)
     Returns the maximum length for a cache.
public  voidaddConfigFile(Path path)
     Backwards compatability for config-file.
public  voidaddContextParam(InitParam initParam)
    
public  voidaddErrorPage(ErrorPage errorPage)
    
public  voidaddFilter(FilterConfigImpl config)
     Adds a filter configuration.
public  voidaddFilterMapping(FilterMapping filterMapping)
     Adds a filter-mapping configuration.
public  voidaddJspConfig(JspConfig config)
    
public  voidaddListener(Listener listener)
    
public  voidaddMimeMapping(MimeMapping mimeMapping)
    
public  voidaddPathMapping(PathMapping pathMapping)
    
public  voidaddPersistenceContextRef(PersistenceContextRefConfig persistenceContextRefConfig)
     Adds a persistence-context-ref configuration.
public  voidaddResourceRef(ResourceRef ref)
     Adds a ResourceRef validator.
public  voidaddSecurityConstraint(SecurityConstraint constraint)
    
public  voidaddSecurityRole(SecurityRole role)
    
public  voidaddServlet(ServletConfigImpl config)
     Adds a servlet configuration.
public  voidaddServletMapping(ServletMapping servletMapping)
     Adds a servlet-mapping configuration.
public  voidaddServletRegexp(ServletRegexp servletRegexp)
     Adds a servlet-regexp configuration.
public  voidaddSessionConfig(SessionManager manager)
     Adds the session manager.
public  voidaddStatus500()
    
public  voidaddTaglib(JspTaglib taglib)
    
public  voidaddWebApp(WebAppConfig config)
    
public  voidaddWebAppDefault(WebAppConfig config)
    
public  voidaddWebAppDeploy(WebAppExpandDeployGenerator deploy)
    
public  voidaddWelcomeFileList(WelcomeFileList list)
     Adds a welcome file list to the webApp.
public  voidbuildDispatchInvocation(Invocation invocation, FilterMapper filterMapper)
     Fills the invocation for subrequests.
public  voidbuildErrorInvocation(Invocation invocation)
     Fills the invocation for an error request.
public  voidbuildForwardInvocation(Invocation invocation)
     Fills the invocation for a forward request.
public  voidbuildIncludeInvocation(Invocation invocation)
     Fills the invocation for an include request.
public  InvocationbuildInvocation(Invocation invocation)
     Fills the servlet instance.
public  voidbuildLoginInvocation(Invocation invocation)
     Fills the invocation for a login request.
public  voidclearCache()
     Clears all caches, including the invocation cache, the filter cache, and the proxy cache.
public  AccessLogcreateAccessLog()
     Sets the access log.
public  InitParamcreateContextParam()
    
public  EjbLocalRefcreateEjbLocalRef()
    
public  EjbRefcreateEjbRef()
    
public  JspPropertyGroupcreateJsp()
    
public  JspConfigcreateJspConfig()
    
public  LocaleEncodingMappingListcreateLocaleEncodingMappingList()
     Configures the locale encoding.
public  MultipartFormcreateMultipartForm()
     Multipart form config.
public  RewriteDispatchcreateRewriteDispatch()
     Adds rewrite-dispatch.
public  RewriteRealPathcreateRewriteRealPath()
     Adds rewrite-real-path.
public  ServletConfigImplcreateServlet()
     Adds a servlet configuration.
public  ServletMappingcreateServletMapping()
    
public  SessionManagercreateSessionConfig()
     Configures the session manager.
public  WebAppExpandDeployGeneratorcreateWebAppDeploy()
    
public  voiddestroy()
     Closes the webApp.
public  booleandoMultipartForm()
     Returns true if multipart forms are enabled.
final  booleanenterWebApp()
     Called when a request starts the webApp.
final  voidexitWebApp()
     Called when a request starts the webApp.
public  AbstractAccessLoggetAccessLog()
    
public  intgetActiveSessionCount()
     Returns the active session count.
public  WebAppAdmingetAdmin()
    
public  PathgetAppDir()
     Gets the webApp directory.
public  ServletAuthenticatorgetAuthenticator()
    
public  longgetCacheMaxLength()
     Returns the maximum length for a cache.
public  StringgetCharacterEncoding()
     Returns the character encoding.
public  ClassLoadergetClassLoader()
     Gets the environment class loader.
public  String[]getClassLoaderHackPackages()
     Returns the classloader hack packages.
public  ClustergetCluster()
     Returns the current cluster.
public  ThrowablegetConfigException()
     Gets the config exception.
public  ServletContextgetContext(String uri)
     Returns the servlet context for the URI.
public  StringgetContextPath()
    
public  booleangetCookieHttpOnly()
    
public  StringgetDescription()
    
public  DispatchServergetDispatchServer()
     Gets the dispatch server.
public  booleangetDispatchWrapsFilters()
     Get true if includes wrap filters.
public  EnvironmentClassLoadergetEnvironmentClassLoader()
     Gets the environment class loader.
public  ErrorPageManagergetErrorPageManager()
     Gets the error page manager.
public  ObjectgetExtension(String key)
     Returns an extension.
public  longgetFormUploadMax()
     Returns the form upload max.
public  HostMXBeangetHostAdmin()
    
public  StringgetHostName()
    
public  DependencyContainergetInvocationDependency()
    
public  JspPropertyGroupgetJsp()
     Returns the JSP configuration.
public  JspApplicationContextImplgetJspApplicationContext()
     Returns the JspApplicationContext for EL evaluation.
public static  WebAppgetLocal()
     Returns the local webApp.
public  StringgetLocaleEncoding(Locale locale)
     Returns the locale encoding.
public  AbstractLogingetLogin()
     Gets the login manager.
public  RequestDispatchergetLoginDispatcher(String url)
     Returns a dispatcher for the named servlet.
public  longgetMaxAge(String uri)
     Returns the time for a cache mapping.
public  StringgetMimeType(String uri)
    
public  StringgetMimeTypeImpl(String ext)
     Maps from a URI to a real path.
public  RequestDispatchergetNamedDispatcher(String servletName)
     Returns a dispatcher for the named servlet.
public  ObjectNamegetObjectName()
     Returns the ObjectName.
public  WebAppContainergetParent()
     Gets the parent container.
public  StringgetRealPath(String uri)
     Maps from a URI to a real path.
public  StringgetRealPathImpl(String uri)
     Maps from a URI to a real path.
public  ArrayList<String>getRegexp()
     Gets the regexp vars.
public  ServletRequestAttributeListener[]getRequestAttributeListeners()
     Returns the request attribute listeners.
public  intgetRequestCount()
     Returns the request count.
public  RequestDispatchergetRequestDispatcher(String url)
     Returns a dispatcher for the named servlet.
public  ServletRequestListener[]getRequestListeners()
     Returns the request listeners.
static  ThreadLocal<ServletRequest>getRequestThreadLocal()
    
public  longgetSMaxAge(String uri)
     Returns the time for a cache mapping.
public  StringgetSchema()
     Returns the relax schema.
public  ServergetServer()
     Gets the dispatch server.
public  ArrayList<String>getServletIgnoreMappingPatterns()
     Returns the best matching servlet pattern.
public  ArrayList<String>getServletMappingPatterns()
     Returns the best matching servlet pattern.
public  StringgetServletPattern(String uri)
     Returns the best matching servlet pattern.
public  SessionManagergetSessionManager()
     Gets the session manager.
public  StringgetState()
     Returns true if the webApp is active.
 longgetStatus500CountTotal()
    
 longgetStatus500LastTime()
    
public  booleangetStrictMapping()
     Get the strict mapping setting.
public  ArrayList<JspTaglib>getTaglibList()
     Returns the taglib configuration.
public static  ServletRequestgetThreadRequest()
    
public  StringgetURL()
    
public  StringgetVersion()
     Returns the servlet version.
public  ArrayList<WebAppConfig>getWebAppDefaultList()
    
public  booleanhas23Config()
    
public  booleanhasListener(Class listenerClass)
     Returns true if a listener with the given type exists.
public  voidinit()
     Initializes.
public  booleanisActive()
     Returns true if the webApp is active.
public  booleanisClosed()
     Returns true if it's closed.
public  booleanisDeployError()
     Returns true if the webApp deployed with an error.
public  booleanisDeployIdle()
     Returns true if the deployment is idle.
public  booleanisDynamicDeploy()
     Set true for a dynamically deployed server.
public  booleanisIgnoreClientDisconnect()
     Returns true if should ignore client disconnect.
public  booleanisInheritSession()
     Gets inherit session.
public  booleanisInit()
     Returns true if it's init.
public  booleanisInitializing()
    
public  booleanisModified()
     Returns true if the webApp has been modified.
public  booleanisModifiedNow()
     Returns true if the webApp has been modified.
public  voidlog(String message, Throwable e)
    
public  booleanlogModified(Logger log)
     Log the reason for modification.
public  voidputLocaleEncoding(String locale, String encoding)
    
public  voidsetAccessLog(AbstractAccessLog log)
     Sets the access log.
public  voidsetActiveWaitTime(Period wait)
    
public  voidsetAllowServletEL(boolean allow)
     Sets the servlet init-param EL enabling.
public  voidsetAppDir(Path appDir)
     Sets the webApp directory.
public  voidsetConfigException(Throwable e)
     Sets the config exception.
public  voidsetConfigNode(org.w3c.dom.Node node)
     Sets the node for testing Servlet/JSP versions.
public  voidsetCookieHttpOnly(boolean isHttpOnly)
    
public  voidsetDescription(String description)
    
public  voidsetDirectoryServlet(String className)
    
public  voidsetDisableCrossContext(boolean isDisable)
     If true, disables getContext().
public  voidsetDispatchWrapsFilters(boolean wrap)
     Set true if includes wrap filters.
public  voidsetDistributable(boolean isDistributable)
    
public  voidsetDocumentDirectory(Path appDir)
     Sets the document directory (app-dir).
public  voidsetDynamicDeploy(boolean isDynamicDeploy)
     Set true for a dynamically deployed server.
public  voidsetEnvironmentClassLoader(EnvironmentClassLoader loader)
     Sets the environment class loader.
public  voidsetIcon(com.caucho.config.types.Icon icon)
    
public  voidsetId(String id)
     The id is the context path.
public  voidsetIdleTime(Period idle)
     Sets the delay time waiting for requests to end.
public  voidsetInheritSession(boolean isInheritSession)
     Sets inherit session.
public  voidsetLazyServletValidate(boolean isLazy)
     Lazy servlet validation.
public  voidsetLogin(Login login)
    
public  voidsetLoginConfig(LoginConfig loginConfig)
    
public  voidsetOldWebApp(WebApp oldWebApp, long expireTime)
     Sets the old version web-app.
public  voidsetParent(WebAppContainer parent)
     Sets the parent container.
public  voidsetRedeployMode(String mode)
    
public  voidsetRegexp(ArrayList<String> regexp)
     Sets the regexp vars.
public  voidsetRootDirectory(Path appDir)
     Sets the root directory (app-dir).
public  voidsetSchemaLocation(String location)
     Sets the schema location.
public  voidsetSecure(boolean isSecure)
     Sets the secure requirement.
public  voidsetShutdownWaitMax(Period wait)
     Sets the delay time waiting for requests to end.
public  voidsetStrictMapping(boolean isStrict)
     Set true if strict mapping.
public  voidsetTempDir(Path path)
    
public  voidsetVersion(String version)
     Sets the servlet version.
public  voidstart()
    
public  voidstop()
     Stops the webApp.
public  StringtoString()
    
 voidupdateStatistics(long time, int readBytes, int writeBytes, boolean isClientDisconnect)
    

Field Detail
_classLoaderHackPackages
static String[] _classLoaderHackPackages(Code)




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



WebApp
WebApp(WebAppController controller)(Code)
Creates the webApp with its environment loader.




Method Detail
accessLog
public void accessLog(HttpServletRequest req, HttpServletResponse res) throws IOException(Code)
Access logging for high-level errors



addCacheMapping
public void addCacheMapping(CacheMapping mapping) throws Exception(Code)
Returns the maximum length for a cache.



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



addContextParam
public void addContextParam(InitParam initParam)(Code)
Sets the context param



addErrorPage
public void addErrorPage(ErrorPage errorPage)(Code)
Adds an error page



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



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



addJspConfig
public void addJspConfig(JspConfig config)(Code)
jsp-config configuration



addListener
public void addListener(Listener listener) throws Exception(Code)



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



addPathMapping
public void addPathMapping(PathMapping pathMapping) throws Exception(Code)
Adds a path-mapping



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



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



addSecurityConstraint
public void addSecurityConstraint(SecurityConstraint constraint)(Code)
Adds a security constraint



addSecurityRole
public void addSecurityRole(SecurityRole role)(Code)
Adds a security role



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



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



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



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



addStatus500
public void addStatus500()(Code)



addTaglib
public void addTaglib(JspTaglib taglib)(Code)
taglib configuration



addWebApp
public void addWebApp(WebAppConfig config) throws Exception(Code)
Adds a sub web-app



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



addWebAppDeploy
public void addWebAppDeploy(WebAppExpandDeployGenerator deploy) throws Exception(Code)
Adds a war generator



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



buildDispatchInvocation
public void buildDispatchInvocation(Invocation invocation, FilterMapper filterMapper) throws ServletException(Code)
Fills the invocation for subrequests.



buildErrorInvocation
public void buildErrorInvocation(Invocation invocation) throws ServletException(Code)
Fills the invocation for an error request.



buildForwardInvocation
public void buildForwardInvocation(Invocation invocation) throws ServletException(Code)
Fills the invocation for a forward request.



buildIncludeInvocation
public void buildIncludeInvocation(Invocation invocation) throws ServletException(Code)
Fills the invocation for an include request.



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



buildLoginInvocation
public void buildLoginInvocation(Invocation invocation) throws ServletException(Code)
Fills the invocation for a login request.



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



createAccessLog
public AccessLog createAccessLog()(Code)
Sets the access log.



createContextParam
public InitParam createContextParam()(Code)
Sets an init-param



createEjbLocalRef
public EjbLocalRef createEjbLocalRef()(Code)
ejb-local-ref configuration



createEjbRef
public EjbRef createEjbRef()(Code)
ejb-ref configuration



createJsp
public JspPropertyGroup createJsp()(Code)
jsp configuration



createJspConfig
public JspConfig createJspConfig()(Code)



createLocaleEncodingMappingList
public LocaleEncodingMappingList createLocaleEncodingMappingList()(Code)
Configures the locale encoding.



createMultipartForm
public MultipartForm createMultipartForm()(Code)
Multipart form config.



createRewriteDispatch
public RewriteDispatch createRewriteDispatch()(Code)
Adds rewrite-dispatch.



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



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



createServletMapping
public ServletMapping createServletMapping()(Code)



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



createWebAppDeploy
public WebAppExpandDeployGenerator createWebAppDeploy()(Code)
Sets the war-expansion



destroy
public void destroy()(Code)
Closes the webApp.



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



enterWebApp
final boolean enterWebApp()(Code)
Called when a request starts the webApp.



exitWebApp
final void exitWebApp()(Code)
Called when a request starts the webApp.



getAccessLog
public AbstractAccessLog getAccessLog()(Code)
Returns the access log



getActiveSessionCount
public int getActiveSessionCount()(Code)
Returns the active session count.



getAdmin
public WebAppAdmin getAdmin()(Code)



getAppDir
public Path getAppDir()(Code)
Gets the webApp directory.



getAuthenticator
public ServletAuthenticator getAuthenticator()(Code)
Gets the authenticator



getCacheMaxLength
public long getCacheMaxLength()(Code)
Returns the maximum length for a cache.



getCharacterEncoding
public String getCharacterEncoding()(Code)
Returns the character encoding.



getClassLoader
public ClassLoader getClassLoader()(Code)
Gets the environment class loader.



getClassLoaderHackPackages
public String[] getClassLoaderHackPackages()(Code)
Returns the classloader hack packages.



getCluster
public Cluster getCluster()(Code)
Returns the current cluster.



getConfigException
public Throwable getConfigException()(Code)
Gets the config exception.



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



getContextPath
public String getContextPath()(Code)
Gets the context path



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



getDescription
public String getDescription()(Code)
A user description of the web-app



getDispatchServer
public DispatchServer getDispatchServer()(Code)
Gets the dispatch server.



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



getEnvironmentClassLoader
public EnvironmentClassLoader getEnvironmentClassLoader()(Code)
Gets the environment class loader.



getErrorPageManager
public ErrorPageManager getErrorPageManager()(Code)
Gets the error page manager.



getExtension
public Object getExtension(String key)(Code)
Returns an extension.



getFormUploadMax
public long getFormUploadMax()(Code)
Returns the form upload max.



getHostAdmin
public HostMXBean getHostAdmin()(Code)
Gets the URL



getHostName
public String getHostName()(Code)
Gets the URL



getInvocationDependency
public DependencyContainer getInvocationDependency()(Code)
Gets the dependency container



getJsp
public JspPropertyGroup getJsp()(Code)
Returns the JSP configuration.



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



getLocal
public static WebApp getLocal()(Code)
Returns the local webApp.



getLocaleEncoding
public String getLocaleEncoding(Locale locale)(Code)
Returns the locale encoding.



getLogin
public AbstractLogin getLogin()(Code)
Gets the login manager.



getLoginDispatcher
public RequestDispatcher getLoginDispatcher(String url)(Code)
Returns a dispatcher for the named servlet.



getMaxAge
public long getMaxAge(String uri)(Code)
Returns the time for a cache mapping.



getMimeType
public String getMimeType(String uri)(Code)
Returns the mime type for a uri



getMimeTypeImpl
public String getMimeTypeImpl(String ext)(Code)
Maps from a URI to a real path.



getNamedDispatcher
public RequestDispatcher getNamedDispatcher(String servletName)(Code)
Returns a dispatcher for the named servlet.



getObjectName
public ObjectName getObjectName()(Code)
Returns the ObjectName.



getParent
public WebAppContainer getParent()(Code)
Gets the parent container.



getRealPath
public String getRealPath(String uri)(Code)
Maps from a URI to a real path.



getRealPathImpl
public String getRealPathImpl(String uri)(Code)
Maps from a URI to a real path.



getRegexp
public ArrayList<String> getRegexp()(Code)
Gets the regexp vars.



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



getRequestCount
public int getRequestCount()(Code)
Returns the request count.



getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String url)(Code)
Returns a dispatcher for the named servlet.



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



getRequestThreadLocal
static ThreadLocal<ServletRequest> getRequestThreadLocal()(Code)



getSMaxAge
public long getSMaxAge(String uri)(Code)
Returns the time for a cache mapping.



getSchema
public String getSchema()(Code)
Returns the relax schema.



getServer
public Server getServer()(Code)
Gets the dispatch server.



getServletIgnoreMappingPatterns
public ArrayList<String> getServletIgnoreMappingPatterns()(Code)
Returns the best matching servlet pattern.



getServletMappingPatterns
public ArrayList<String> getServletMappingPatterns()(Code)
Returns the best matching servlet pattern.



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



getSessionManager
public SessionManager getSessionManager()(Code)
Gets the session manager.



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



getStatus500CountTotal
long getStatus500CountTotal()(Code)



getStatus500LastTime
long getStatus500LastTime()(Code)



getStrictMapping
public boolean getStrictMapping()(Code)
Get the strict mapping setting.



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



getThreadRequest
public static ServletRequest getThreadRequest()(Code)



getURL
public String getURL()(Code)
Gets the URL



getVersion
public String getVersion()(Code)
Returns the servlet version.



getWebAppDefaultList
public ArrayList<WebAppConfig> getWebAppDefaultList()(Code)
Adds a web-app default



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



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



init
public void init() throws Exception(Code)
Initializes.



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



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



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



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



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



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



isInheritSession
public boolean isInheritSession()(Code)
Gets inherit session.



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



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



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



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



log
public void log(String message, Throwable e)(Code)
Error logging
Parameters:
  message - message to log
Parameters:
  e - stack trace of the error



logModified
public boolean logModified(Logger log)(Code)
Log the reason for modification.



putLocaleEncoding
public void putLocaleEncoding(String locale, String encoding)(Code)
Adds a locale-mapping



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



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



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



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



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



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



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



setDescription
public void setDescription(String description)(Code)
A user description of the web-app



setDirectoryServlet
public void setDirectoryServlet(String className) throws Exception(Code)
(compat) sets the directory servlet



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



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



setDistributable
public void setDistributable(boolean isDistributable)(Code)



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



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



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



setIcon
public void setIcon(com.caucho.config.types.Icon icon)(Code)
Sets the icon



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



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



setInheritSession
public void setInheritSession(boolean isInheritSession)(Code)
Sets inherit session.



setLazyServletValidate
public void setLazyServletValidate(boolean isLazy)(Code)
Lazy servlet validation.



setLogin
public void setLogin(Login login)(Code)
Sets the login



setLoginConfig
public void setLoginConfig(LoginConfig loginConfig) throws Throwable(Code)
Sets the login



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



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



setRedeployMode
public void setRedeployMode(String mode)(Code)
Sets the redeploy-mode of the controller



setRegexp
public void setRegexp(ArrayList<String> regexp)(Code)
Sets the regexp vars.



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



setSchemaLocation
public void setSchemaLocation(String location)(Code)
Sets the schema location.



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



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



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



setTempDir
public void setTempDir(Path path)(Code)
Sets the temporary directory



setVersion
public void setVersion(String version)(Code)
Sets the servlet version.



start
public void start()(Code)



stop
public void stop()(Code)
Stops the webApp.



toString
public String toString()(Code)



updateStatistics
void updateStatistics(long time, int readBytes, int writeBytes, boolean isClientDisconnect)(Code)



Fields inherited from com.caucho.server.webapp.ServletContextImpl
final static L10N L(Code)(Java Doc)
final static Logger log(Code)(Java Doc)

Methods inherited from com.caucho.server.webapp.ServletContextImpl
protected void addAttributeListener(ServletContextAttributeListener listener)(Code)(Java Doc)
public Path getAppDir()(Code)(Java Doc)
public Object getAttribute(String name)(Code)(Java Doc)
public Enumeration getAttributeNames()(Code)(Java Doc)
public ServletContext getContext(String uri)(Code)(Java Doc)
public String getContextPath()(Code)(Java Doc)
public String getInitParameter(String name)(Code)(Java Doc)
public Enumeration getInitParameterNames()(Code)(Java Doc)
public int getMajorVersion()(Code)(Java Doc)
public String getMimeType(String uri)(Code)(Java Doc)
public int getMinorVersion()(Code)(Java Doc)
public RequestDispatcher getNamedDispatcher(String servletName)(Code)(Java Doc)
public String getRealPath(String uri)(Code)(Java Doc)
public RequestDispatcher getRequestDispatcher(String uri)(Code)(Java Doc)
public URL getResource(String name) throws java.net.MalformedURLException(Code)(Java Doc)
public InputStream getResourceAsStream(String uripath)(Code)(Java Doc)
public Set getResourcePaths(String prefix)(Code)(Java Doc)
public String getServerInfo()(Code)(Java Doc)
public Servlet getServlet(String name)(Code)(Java Doc)
public String getServletContextName()(Code)(Java Doc)
public Enumeration getServletNames()(Code)(Java Doc)
public Enumeration getServlets()(Code)(Java Doc)
final public void log(String message)(Code)(Java Doc)
final public void log(Exception e, String msg)(Code)(Java Doc)
public void log(String message, Throwable e)(Code)(Java Doc)
public void removeAttribute(String name)(Code)(Java Doc)
public void setAttribute(String name, Object value)(Code)(Java Doc)
public void setDisplayName(String name)(Code)(Java Doc)
protected void setInitParameter(String name, String value)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.