|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.web.impl.tomcat.TC6WebAppContext
public class TC6WebAppContext
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void start() throws java.lang.Exception
WebAppContext
start
in interface WebAppContext
java.lang.Exception
- any exception that would veto the usage of the web applicationpublic void stop()
WebAppContext
stop
in interface WebAppContext
public javax.servlet.ServletContext getServletContext()
WebAppContext
getServletContext
in interface WebAppContext
public java.lang.ClassLoader getClassLoader()
WebAppContext
getClassLoader
in interface WebAppContext
public java.lang.String getContextPath()
WebAppContext
getContextPath
in interface WebAppContext
public boolean importFile(java.lang.String parentDirRelativePath, java.lang.String name, java.io.InputStream source, boolean overwrite) throws java.io.IOException
WebAppContext
Inputstream
to the target OutputStream
importFile
in interface WebAppContext
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 |