Class GlobalWebappConfigBinding
- java.lang.Object
-
- org.eclipse.jetty.deploy.bindings.GlobalWebappConfigBinding
-
- All Implemented Interfaces:
AppLifeCycle.Binding
public class GlobalWebappConfigBinding extends java.lang.Object implements AppLifeCycle.Binding
Provides a way of globally setting various aspects of webapp contexts. Adding this binding will allow the user to arbitrarily apply a file of jetty-web.xml like settings to a webapp context. Example usage would be: - adding a server or system class setting to all webapp contexts - adding an override descriptor Note: Currently properties from startup will not be available for reference.
-
-
Constructor Summary
Constructors Constructor Description GlobalWebappConfigBinding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getBindingTargets()
Get a list of targets that this implementation should bind to.java.lang.String
getJettyXml()
void
processBinding(Node node, App app)
Event called to process aAppLifeCycle
binding.void
setJettyXml(java.lang.String jettyXml)
-
-
-
Method Detail
-
getJettyXml
public java.lang.String getJettyXml()
-
setJettyXml
public void setJettyXml(java.lang.String jettyXml)
-
getBindingTargets
public java.lang.String[] getBindingTargets()
Description copied from interface:AppLifeCycle.Binding
Get a list of targets that this implementation should bind to.- Specified by:
getBindingTargets
in interfaceAppLifeCycle.Binding
- Returns:
- the array of String node names to bind to. (use
"*"
to bind to all known node names)
-
processBinding
public void processBinding(Node node, App app) throws java.lang.Exception
Description copied from interface:AppLifeCycle.Binding
Event called to process aAppLifeCycle
binding.- Specified by:
processBinding
in interfaceAppLifeCycle.Binding
- Parameters:
node
- the node being processedapp
- the app being processed- Throws:
java.lang.Exception
- if any problem severe enough to halt the AppLifeCycle processing
-
-