org.jboss.portal.server.deployment
Class PortalWebApp

java.lang.Object
  extended by org.jboss.portal.server.deployment.PortalWebApp
Direct Known Subclasses:
CustomPortalWebApp, PortalWebTomcat4App, PortalWebTomcat5App

public abstract class PortalWebApp
extends java.lang.Object

Encapsulate the infos needed by the portal deployment layer to create the application.


Field Summary
protected  org.apache.log4j.Logger log
          The logger.
protected  java.net.URL url
          The URL the webapp comes from.
protected  org.jboss.web.WebApplication webApp
          The web application as seen by JBoss.
 
Constructor Summary
protected PortalWebApp(org.jboss.web.WebApplication webApp)
          Constructor with the given web app.
 
Method Summary
abstract  java.lang.ClassLoader getClassLoader()
          Return the classloader of the web app.
abstract  java.lang.String getContextPath()
          Returns the context path of the web application.
abstract  javax.servlet.ServletContext getServletContext()
          Returns the servlet context of the web application.
 java.net.URL getURL()
          Return the URL associated to this webapp.
abstract  void instrument()
          Instrument the web application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.log4j.Logger log
The logger.


webApp

protected final org.jboss.web.WebApplication webApp
The web application as seen by JBoss.


url

protected final java.net.URL url
The URL the webapp comes from.

Constructor Detail

PortalWebApp

protected PortalWebApp(org.jboss.web.WebApplication webApp)
Constructor with the given web app.

Method Detail

instrument

public abstract void instrument()
                         throws java.lang.Exception
Instrument the web application.

Throws:
java.lang.Exception

getURL

public java.net.URL getURL()
Return the URL associated to this webapp.


getClassLoader

public abstract java.lang.ClassLoader getClassLoader()
Return the classloader of the web app.


getContextPath

public abstract java.lang.String getContextPath()
Returns the context path of the web application.


getServletContext

public abstract javax.servlet.ServletContext getServletContext()
Returns the servlet context of the web application.