|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.server.deployment.PortalWebApp
Encapsulate the infos needed by the portal deployment layer to create the application.
Field Summary | |
protected org.apache.log4j.Logger |
log
The logger. |
Constructor Summary | |
protected |
PortalWebApp()
Constructor with the given web app. |
Method Summary | |
java.lang.ClassLoader |
getClassLoader()
Return the classloader of the web app. |
java.lang.String |
getContextPath()
Returns the context path of the web application. |
org.w3c.dom.Document |
getDescriptor()
|
java.lang.String |
getId()
Return the application id. |
javax.servlet.ServletContext |
getServletContext()
Returns the servlet context of the web application. |
java.net.URL |
getURL()
Return the URL associated to this webapp. |
boolean |
importFile(java.lang.String parentDirRelativePath,
java.lang.String name,
java.io.InputStream source,
boolean overwrite)
Import a file in the war file. |
protected void |
init(javax.servlet.ServletContext servletContext,
java.net.URL url,
java.lang.ClassLoader loader,
java.lang.String contextPath)
|
abstract void |
instrument()
Instrument the web application. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final org.apache.log4j.Logger log
Constructor Detail |
protected PortalWebApp()
Method Detail |
public abstract void instrument() throws java.lang.Exception
java.lang.Exception
public final java.net.URL getURL()
public final java.lang.String getId()
public final java.lang.ClassLoader getClassLoader()
public final java.lang.String getContextPath()
public final javax.servlet.ServletContext getServletContext()
public final org.w3c.dom.Document getDescriptor()
public final 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 createdprotected final void init(javax.servlet.ServletContext servletContext, java.net.URL url, java.lang.ClassLoader loader, java.lang.String contextPath) throws CannotCreatePortletWebAppException
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |