|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebAppContext
A web application context.
Method Summary | |
---|---|
java.lang.ClassLoader |
getClassLoader()
Returns the class loader of the web application. |
java.lang.String |
getContextPath()
Returns the context path of the web application. |
javax.servlet.ServletContext |
getServletContext()
Returns the servlet context of the web application. |
boolean |
importFile(java.lang.String parentDirRelativePath,
java.lang.String name,
java.io.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. |
Method Detail |
---|
void start() throws java.lang.Exception
java.lang.Exception
- any exception that would veto the usage of the web applicationvoid stop()
javax.servlet.ServletContext getServletContext()
java.lang.ClassLoader getClassLoader()
java.lang.String getContextPath()
boolean importFile(java.lang.String parentDirRelativePath, java.lang.String name, java.io.InputStream source, boolean overwrite) throws java.io.IOException
Inputstream
to the target OutputStream
parentDirRelativePath
- 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 done
java.io.IOException
- if the file cannot be created
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |