Top Description Inners Fields Constructors Methods
org.eclipse.jetty.ee10.plus.webapp

public Class EnvConfiguration

extends AbstractConfiguration
Class Inheritance
Imports
java.util.Map, .Set, javax.naming.Context, .InitialContext, .Name, .NameNotFoundException, .NamingException, org.eclipse.jetty.ee10.servlet.ServletContextHandler, org.eclipse.jetty.ee10.webapp.AbstractConfiguration, .FragmentConfiguration, .JettyWebXmlConfiguration, .MetaInfConfiguration, .WebAppClassLoader, .WebAppContext, .WebXmlConfiguration, org.eclipse.jetty.plus.jndi.EnvEntry, .NamingEntryUtil, org.eclipse.jetty.util.jndi.NamingDump, .NamingUtil, org.eclipse.jetty.util.resource.Resource, .Resources, org.eclipse.jetty.xml.XmlConfiguration, org.slf4j.Logger, .LoggerFactory

EnvConfiguration

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final String
public static final String
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
bindEnvEntries(WebAppContext
the context to use for the object scope
context
)

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

public void
protected void
public void
public void
private void
doBindings(Context envCtx, Object scope)

public void
Inherited from org.eclipse.jetty.ee10.webapp.AbstractConfiguration:
abortgetDependenciesgetDependentsgetServerClassesgetSystemClassesisEnabledByDefaultpostConfigure

Field Detail

JETTY_ENV_BINDINGSback to summary
private static final String JETTY_ENV_BINDINGS
JETTY_ENV_XMLback to summary
public static final String JETTY_ENV_XML
LOGback to summary
private static final Logger LOG

Constructor Detail

EnvConfigurationback to summary
public EnvConfiguration()

Method Detail

bindEnvEntriesback to summary
public void bindEnvEntries(WebAppContext context) 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.

Parameters
context:WebAppContext

the context to use for the object scope

Exceptions
NamingException:
if unable to bind env entries
configureback to summary
public void configure(WebAppContext context) throws Exception

Overrides org.eclipse.jetty.ee10.webapp.AbstractConfiguration.configure.

Implements org.eclipse.jetty.ee10.webapp.Configuration.configure.

Doc from org.eclipse.jetty.ee10.webapp.Configuration.configure.

Configure WebApp.

Typically this step applies the discovered configuration resources to either the WebAppContext or the associated MetaData.

Parameters
context:WebAppContext

The context to configure

Annotations
@Override
Exceptions
Exception:
if unable to configure
createEnvContextback to summary
protected void createEnvContext(WebAppContext wac) throws NamingException
deconfigureback to summary
public void deconfigure(WebAppContext context) throws Exception

Overrides org.eclipse.jetty.ee10.webapp.AbstractConfiguration.deconfigure.

Implements org.eclipse.jetty.ee10.webapp.Configuration.deconfigure.

Remove jndi setup from start

Parameters
context:WebAppContext

Doc from org.eclipse.jetty.ee10.webapp.Configuration.deconfigure.

The context to configure

Annotations
@Override
Exceptions
Exception:
if unable to deconfigure
destroyback to summary
public void destroy(WebAppContext context) throws Exception

Overrides org.eclipse.jetty.ee10.webapp.AbstractConfiguration.destroy.

Implements org.eclipse.jetty.ee10.webapp.Configuration.destroy.

Remove all jndi setup

Parameters
context:WebAppContext

Doc from org.eclipse.jetty.ee10.webapp.Configuration.destroy.

The context to configure

Annotations
@Override
Exceptions
Exception:
if unable to destroy
doBindingsback to summary
private void doBindings(Context envCtx, Object scope) throws NamingException
preConfigureback to summary
public void preConfigure(WebAppContext context) throws Exception

Overrides org.eclipse.jetty.ee10.webapp.AbstractConfiguration.preConfigure.

Implements org.eclipse.jetty.ee10.webapp.Configuration.preConfigure.

Doc from org.eclipse.jetty.ee10.webapp.Configuration.preConfigure.

Set up for configuration.

Typically this step discovers configuration resources. Calls to preConfigure may alter the Configurations configured on the WebAppContext, so long as configurations prior to this configuration are not altered.

Parameters
context:WebAppContext

The context to configure

Annotations
@Override
Exceptions
Exception:
if unable to pre configure
org.eclipse.jetty.ee10.plus.webapp back to summary

private Class EnvConfiguration.Dumper

extends NamingDump
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv
Dumper(ClassLoader loader, String name)

Method Summary

Inherited from org.eclipse.jetty.util.jndi.NamingDump:
dump

Constructor Detail

Dumperback to summary
pack-priv Dumper(ClassLoader loader, String name)