|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WebApp
Abstraction of a web application.
| 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. |
| Method Detail |
|---|
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 | ||||||||