public abstract class CatalinaWebAppContext extends Object implements WebAppContext
| Modifier and Type | Field and Description |
|---|---|
protected ClassLoader |
classLoader
.
|
protected String |
contextPath
.
|
protected static int |
GATEIN_SERVLET_LOAD_ON_STARTUP |
protected static String |
GATEIN_SERVLET_NAME |
protected static String |
GATEIN_SERVLET_PATH |
protected static org.gatein.common.logging.Logger |
log |
protected javax.servlet.ServletContext |
servletContext
.
|
| Constructor and Description |
|---|
CatalinaWebAppContext(javax.servlet.ServletContext servletContext,
ClassLoader classLoader,
String contextPath) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
cleanup() |
void |
fireRequestDestroyed(javax.servlet.ServletRequest servletRequest) |
void |
fireRequestInitialized(javax.servlet.ServletRequest servletRequest) |
ClassLoader |
getClassLoader()
Returns the class loader of the web application.
|
protected String |
getCommandServletClassName() |
String |
getContextPath()
Returns the context path of the web application.
|
javax.servlet.ServletContext |
getServletContext()
Returns the servlet context of the web application.
|
boolean |
importFile(String parentDirRelativePath,
String name,
InputStream source,
boolean overwrite)
Import a file in the war file.
|
protected abstract void |
performStartup() |
void |
start()
Start the web application context usage from a client point of view.
|
void |
stop()
Stop the web application context usage.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHttpSessionprotected static final org.gatein.common.logging.Logger log
protected static final String GATEIN_SERVLET_NAME
protected static final String GATEIN_SERVLET_PATH
protected static final int GATEIN_SERVLET_LOAD_ON_STARTUP
protected javax.servlet.ServletContext servletContext
protected ClassLoader classLoader
protected String contextPath
public CatalinaWebAppContext(javax.servlet.ServletContext servletContext,
ClassLoader classLoader,
String contextPath)
public void start()
throws Exception
WebAppContextstart in interface WebAppContextException - any exception that would veto the usage of the web applicationpublic void stop()
WebAppContextstop in interface WebAppContextpublic javax.servlet.ServletContext getServletContext()
WebAppContextgetServletContext in interface WebAppContextpublic ClassLoader getClassLoader()
WebAppContextgetClassLoader in interface WebAppContextpublic String getContextPath()
WebAppContextgetContextPath in interface WebAppContextpublic boolean importFile(String parentDirRelativePath, String name, InputStream source, boolean overwrite) throws IOException
WebAppContextInputstream to the target OutputStreamimportFile in interface WebAppContextparentDirRelativePath - the parent relative path in the web app starting from the app rootname - the name the created file should havesource - the data of the target fileoverwrite - if false and the file already exists nothing is doneIOException - if the file cannot be createdprotected String getCommandServletClassName()
public void fireRequestDestroyed(javax.servlet.ServletRequest servletRequest)
fireRequestDestroyed in interface WebAppContextpublic void fireRequestInitialized(javax.servlet.ServletRequest servletRequest)
fireRequestInitialized in interface WebAppContextprotected abstract void cleanup()
Copyright © 2021 JBoss by Red Hat. All Rights Reserved.