|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mortbay.util.Container
org.mortbay.http.HttpContext
org.mortbay.jetty.servlet.ServletHttpContext
org.mortbay.jetty.servlet.WebApplicationContext
org.mortbay.jetty.plus.PlusWebAppContext
public class PlusWebAppContext
Nested Class Summary | |
---|---|
static class |
PlusWebAppContext.Configuration
|
Field Summary |
---|
Fields inherited from class org.mortbay.http.HttpContext |
---|
__ErrorHandler, __fileClassPathAttr |
Constructor Summary | |
---|---|
PlusWebAppContext()
Constructor. |
|
PlusWebAppContext(java.lang.String webApp)
Constructor. |
Method Summary | |
---|---|
void |
addEnvEntry(java.lang.String name,
java.lang.Object value)
Add a java:comp/env entry. |
void |
doStart()
Start the Web Application. |
void |
doStop()
Stop the web application. |
java.util.Map |
getENC()
Get a mapping of java:comp/env bindings for this webapp context. |
java.lang.Object |
getEnvEntry(java.lang.String name)
|
boolean |
getWebXmlEnvEntryOverride()
|
void |
handle(HttpRequest request,
HttpResponse response)
Handler request. |
protected void |
initClassLoader(boolean forceContextLoader)
Initialize the context classloader. |
protected void |
initialize()
Initialize is called by the start method after the contexts classloader has been initialied, but before the defaults descriptor has been applied. |
void |
setWebXmlEnvEntryOverride(boolean value)
|
Methods inherited from class org.mortbay.jetty.servlet.ServletHttpContext |
---|
addLocaleEncoding, addServlet, addServlet, checkSecurityConstraints, enterContextScope, getLocaleEncoding, getServletContext, jSecurityCheck, sendError |
Methods inherited from class org.mortbay.util.Container |
---|
addComponent, getComponents, isFailed, isStarted, isStarting, isStopping, removeComponent, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.mortbay.util.LifeCycle |
---|
isStarted, start, stop |
Constructor Detail |
---|
public PlusWebAppContext()
java.io.IOException
public PlusWebAppContext(java.lang.String webApp)
webApp
- The Web application directory or WAR file.
java.io.IOException
Method Detail |
---|
public void setWebXmlEnvEntryOverride(boolean value)
public boolean getWebXmlEnvEntryOverride()
public void addEnvEntry(java.lang.String name, java.lang.Object value)
public java.lang.Object getEnvEntry(java.lang.String name)
public java.util.Map getENC() throws javax.naming.NamingException
javax.naming.NamingException
public void doStart() throws java.lang.Exception
WebApplicationContext
doStart
in class WebApplicationContext
java.lang.Exception
public void handle(HttpRequest request, HttpResponse response) throws HttpException, java.io.IOException
HttpContext
handle
in class HttpContext
HttpException
java.io.IOException
protected void initialize() throws java.lang.Exception
WebApplicationContext
initialize
in class WebApplicationContext
java.lang.Exception
- if an error occursprotected void initClassLoader(boolean forceContextLoader) throws java.net.MalformedURLException, java.io.IOException
HttpContext
initClassLoader
in class HttpContext
forceContextLoader
- If true, a ContextLoader is always if
no loader has been set.
java.net.MalformedURLException
java.io.IOException
public void doStop() throws java.lang.Exception
WebApplicationContext
doStop
in class WebApplicationContext
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |