|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.mortbay.http.HandlerContext
|
+--org.mortbay.jetty.servlet.ServletHandlerContext
|
+--org.mortbay.jetty.servlet.WebApplicationContext
Standard web.xml configured HandlerContext. This specialization of HandlerContext uses the standardized web.xml to describe a web application and configure the handlers for the HandlerContext.
It creates and/or configures the following Handlers:
| Constructor Summary | |
WebApplicationContext(HttpServer httpServer,
java.lang.String contextPathSpec)
Constructor. |
|
WebApplicationContext(HttpServer httpServer,
java.lang.String contextPathSpec,
java.lang.String webApp,
java.lang.String defaults,
boolean extractWar)
Constructor. |
|
| Method Summary | |
java.lang.String |
getDefaultsDescriptor()
|
java.lang.String |
getDeploymentDescriptor()
|
java.lang.String |
getDisplayName()
|
boolean |
getExtractWAR()
|
java.util.Map |
getTagLibMap()
Get the taglib map. |
java.lang.String |
getWAR()
|
XmlParser |
getXmlParser()
|
void |
initialize(java.lang.String webApp,
java.lang.String defaults,
boolean extractWar)
Initialize. |
void |
setBaseResource(Resource baseResource)
Set the base resource. |
void |
setClassPath(java.lang.String classPath)
Sets the class path for the context. |
void |
setDefaultsDescriptor(java.lang.String defaults)
|
void |
setExtractWAR(boolean extract)
|
void |
setResourceBase(java.lang.String resourceBase)
Set the Resource Base. |
void |
setWAR(java.lang.String war)
|
void |
start()
Start the Web Application. |
java.lang.String |
toString()
|
| Methods inherited from class org.mortbay.jetty.servlet.ServletHandlerContext |
addServlet, addServlet, getDynamicServletPathSpec, getServletHandler, setDynamicServletPathSpec |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public WebApplicationContext(HttpServer httpServer,
java.lang.String contextPathSpec)
httpServer - The HttpServer for this contextcontextPathSpec - The context path spec. Which must be of
the form / or /path/*
public WebApplicationContext(HttpServer httpServer,
java.lang.String contextPathSpec,
java.lang.String webApp,
java.lang.String defaults,
boolean extractWar)
throws java.io.IOException
httpServer - The HttpServer for this contextcontextPathSpec - The context path spec. Which must be of
the form / or /path/*webApp - The Web application directory or WAR file.defaults - The defaults xml filename or URL which is
loaded before any in the web app. Must respect the web.dtd.
Normally this is passed the file $JETTY_HOME/etc/webdefault.xmlextractWar - If true, WAR files are extracted to a
temporary directory.java.io.IOException - | Method Detail |
public void initialize(java.lang.String webApp,
java.lang.String defaults,
boolean extractWar)
throws java.io.IOException
webApp - The Web application directory or WAR file.defaults - The defaults xml filename or URL which is
loaded before any in the web app. Must respect the web.dtd.
Normally this is passed the file $JETTY_HOME/etc/webdefault.xmlextractWar - If true, WAR files are extracted to a
temporary directory.java.io.IOException -
public void start()
throws java.lang.Exception
start in class HandlerContextjava.io.IOException - public XmlParser getXmlParser()
public java.lang.String getDisplayName()
public java.lang.String getDeploymentDescriptor()
public void setDefaultsDescriptor(java.lang.String defaults)
public java.lang.String getDefaultsDescriptor()
public void setWAR(java.lang.String war)
public java.lang.String getWAR()
public void setExtractWAR(boolean extract)
public boolean getExtractWAR()
public java.lang.String toString()
toString in class ServletHandlerContextpublic void setClassPath(java.lang.String classPath)
HandlerContextsetClassPath in class HandlerContextorg.mortbay.http.HandlerContextfileBase - public void setResourceBase(java.lang.String resourceBase)
HandlerContextsetResourceBase in class HandlerContextorg.mortbay.http.HandlerContextresourceBase - A URL prefix or directory name.public void setBaseResource(Resource baseResource)
HandlerContextsetBaseResource in class HandlerContextorg.mortbay.http.HandlerContextbase - The resourceBase as a Resource instancepublic java.util.Map getTagLibMap()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||