Top Description Fields Constructors Methods
org.mortbay.jetty.plus.webapp

public Class EnvConfiguration

extends Object
implements Configuration
Class Inheritance
All Implemented Interfaces
org.mortbay.jetty.webapp.Configuration, java.io.Serializable
Imports
java.net.URL, java.util.Iterator, .List, javax.naming.Context, .InitialContext, .Name, .NameNotFoundException, .NamingEnumeration, .NamingException, org.mortbay.jetty.plus.naming.EnvEntry, .NamingEntry, .NamingEntryUtil, .Resource, .Transaction, org.mortbay.jetty.webapp.Configuration, .WebAppContext, org.mortbay.log.Log, org.mortbay.naming.NamingUtil, org.mortbay.xml.XmlConfiguration

EnvConfiguration

Field Summary

Modifier and TypeField and Description
private Context
private Context
private URL
private WebAppContext

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
bindEnvEntries()

Bind all EnvEntries that have been declared, so that the processing of the web.xml file can potentially override them.

public void
public void
public void
protected void
public void
public WebAppContext
getWebAppContext()

Implements org.mortbay.jetty.webapp.Configuration.getWebAppContext.

Get the context on which the configuration is performed.
public void
public void
setWebAppContext(WebAppContext context)

Implements org.mortbay.jetty.webapp.Configuration.setWebAppContext.

Set up a context on which to perform the configuration.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

compCtxback to summary
private Context compCtx
envCtxback to summary
private Context envCtx
jettyEnvXmlUrlback to summary
private URL jettyEnvXmlUrl
webAppContextback to summary
private WebAppContext webAppContext

Constructor Detail

EnvConfigurationback to summary
public EnvConfiguration()

Method Detail

bindEnvEntriesback to summary
public void bindEnvEntries() throws NamingException

Bind all EnvEntries that have been declared, so that the processing of the web.xml file can potentially override them. We first bind EnvEntries declared in Server scope, then WebAppContext scope.

configureClassLoaderback to summary
public void configureClassLoader() throws Exception

Implements org.mortbay.jetty.webapp.Configuration.configureClassLoader.

Doc from org.mortbay.jetty.webapp.Configuration.configureClassLoader.

Configure ClassPath. This method is called to configure the context ClassLoader. It is called just after a new WebAppClassLoader is constructed and before it has been used. Class paths may be added, options changed or the loader totally replaced.

See Also
org.mortbay.jetty.webapp.Configuration#configureClassLoader()
configureDefaultsback to summary
public void configureDefaults() throws Exception

Implements org.mortbay.jetty.webapp.Configuration.configureDefaults.

Doc from org.mortbay.jetty.webapp.Configuration.configureDefaults.

Configure Defaults. This method is called to intialize the context to the containers default configuration. Typically this would mean application of the webdefault.xml file.

See Also
org.mortbay.jetty.webapp.Configuration#configureDefaults()
configureWebAppback to summary
public void configureWebApp() throws Exception

Implements org.mortbay.jetty.webapp.Configuration.configureWebApp.

Doc from org.mortbay.jetty.webapp.Configuration.configureWebApp.

Configure WebApp. This method is called to apply the standard and vendor deployment descriptors. Typically this is web.xml and jetty-web.xml.

See Also
org.mortbay.jetty.webapp.Configuration#configureWebApp()
createEnvContextback to summary
protected void createEnvContext() throws NamingException
deconfigureWebAppback to summary
public void deconfigureWebApp() throws Exception

Implements org.mortbay.jetty.webapp.Configuration.deconfigureWebApp.

Remove all jndi setup

See Also
org.mortbay.jetty.webapp.Configuration#deconfigureWebApp()
getWebAppContextback to summary
public WebAppContext getWebAppContext()

Implements org.mortbay.jetty.webapp.Configuration.getWebAppContext.

Doc from org.mortbay.jetty.webapp.Configuration.getWebAppContext.

Get the context on which the configuration is performed.

See Also
org.mortbay.jetty.webapp.Configuration#getWebAppContext()
setJettyEnvXmlback to summary
public void setJettyEnvXml(URL url)
setWebAppContextback to summary
public void setWebAppContext(WebAppContext context)

Implements org.mortbay.jetty.webapp.Configuration.setWebAppContext.

Doc from org.mortbay.jetty.webapp.Configuration.setWebAppContext.

Set up a context on which to perform the configuration.

See Also
org.mortbay.jetty.webapp.Configuration#setWebAppContext(org.mortbay.jetty.webapp.WebAppContext)