public interface WebAppContext
| Modifier and Type | Method and Description |
|---|---|
void |
fireRequestDestroyed(javax.servlet.ServletRequest servletRequest) |
void |
fireRequestInitialized(javax.servlet.ServletRequest servletRequest) |
ClassLoader |
getClassLoader()
Returns the class loader of the web application.
|
String |
getContextPath()
Returns the context path of the web application.
|
javax.servlet.http.HttpSession |
getHttpSession(String sessId)
Returns Http session in case that session with sessId exists for this 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.
|
void |
start()
Start the web application context usage from a client point of view.
|
void |
stop()
Stop the web application context usage.
|
void start()
throws Exception
Exception - any exception that would veto the usage of the web applicationvoid stop()
javax.servlet.ServletContext getServletContext()
ClassLoader getClassLoader()
String getContextPath()
boolean importFile(String parentDirRelativePath, String name, InputStream source, boolean overwrite) throws IOException
Inputstream to the target OutputStreamparentDirRelativePath - 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 createdjavax.servlet.http.HttpSession getHttpSession(String sessId)
sessId - void fireRequestInitialized(javax.servlet.ServletRequest servletRequest)
void fireRequestDestroyed(javax.servlet.ServletRequest servletRequest)
Copyright © 2018 JBoss by Red Hat. All Rights Reserved.