Class StandardContextHandlerFactory
java.lang.Object
org.eclipse.jetty.deploy.StandardContextHandlerFactory
- All Implemented Interfaces:
ContextHandlerFactory
Creates a
ContextHandler
from a WAR file and/or one or more XML files and property files.-
Field Summary
Fields inherited from interface org.eclipse.jetty.deploy.ContextHandlerFactory
DEFAULT_CONTEXT_HANDLER_CLASS_ATTRIBUTE, ENVIRONMENT_ATTRIBUTE, ENVIRONMENT_XML_PATHS_ATTRIBUTE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
applyXml
(Server server, Object context, Path xml, Environment environment, Attributes attributes) protected void
initializeContextHandler
(ContextHandler contextHandler, Path path, Attributes attributes) protected void
initializeContextPath
(ContextHandler contextHandler, Path path, Attributes attributes) newContextHandler
(Server server, Environment environment, Path mainPath, Set<Path> otherPaths, Attributes deployAttributes)
-
Constructor Details
-
StandardContextHandlerFactory
public StandardContextHandlerFactory()
-
-
Method Details
-
newContextHandler
public ContextHandler newContextHandler(Server server, Environment environment, Path mainPath, Set<Path> otherPaths, Attributes deployAttributes) throws Exception - Specified by:
newContextHandler
in interfaceContextHandlerFactory
- Parameters:
server
- The server for the context.environment
- The environment for the contextmainPath
- ThePath
of the main file of the context (e.g. a WAR file or XML)otherPaths
- Other files associated with the context (e.g. property files)deployAttributes
- Attributes describing the details of the deployment and that are made available to theXmlConfiguration
. The attribute names can be- Returns:
- The created
ContextHandler
- Throws:
Exception
- If there is a problem creating theContextHandler
-
applyXml
protected Object applyXml(Server server, Object context, Path xml, Environment environment, Attributes attributes) throws Exception - Throws:
Exception
-
initializeContextHandler
protected void initializeContextHandler(ContextHandler contextHandler, Path path, Attributes attributes) -
initializeContextPath
protected void initializeContextPath(ContextHandler contextHandler, Path path, Attributes attributes)
-