org.mortbay.jetty.plus

Class PlusWebAppContext

public class PlusWebAppContext extends WebApplicationContext

Nested Class Summary
static classPlusWebAppContext.Configuration
Constructor Summary
PlusWebAppContext()
Constructor.
PlusWebAppContext(String webApp)
Constructor.
Method Summary
voidaddEnvEntry(String name, Object value)
Add a java:comp/env entry.
voiddoStart()
voiddoStop()
ObjectgetEnvEntry(String name)
MapgetENC()
Get a mapping of java:comp/env bindings for this webapp context.
booleangetWebXmlEnvEntryOverride()
voidhandle(HttpRequest request, HttpResponse response)
protected voidinitClassLoader(boolean forceContextLoader)
protected voidinitialize()
voidsetWebXmlEnvEntryOverride(boolean value)

Constructor Detail

PlusWebAppContext

public PlusWebAppContext()
Constructor.

Throws: IOException

PlusWebAppContext

public PlusWebAppContext(String webApp)
Constructor.

Parameters: webApp The Web application directory or WAR file.

Throws: IOException

Method Detail

addEnvEntry

public void addEnvEntry(String name, Object value)
Add a java:comp/env entry. Values must be serializable to be stored!

doStart

public void doStart()

doStop

public void doStop()

getEnvEntry

public Object getEnvEntry(String name)

getENC

public Map getENC()
Get a mapping of java:comp/env bindings for this webapp context.

Returns: flattened map of java:comp/env names to bound objects

Throws: NamingException

getWebXmlEnvEntryOverride

public boolean getWebXmlEnvEntryOverride()

handle

public void handle(HttpRequest request, HttpResponse response)

initClassLoader

protected void initClassLoader(boolean forceContextLoader)

initialize

protected void initialize()

setWebXmlEnvEntryOverride

public void setWebXmlEnvEntryOverride(boolean value)
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.