Interface ContextHandlerFactory
- All Known Implementing Classes:
StandardContextHandlerFactory
public interface ContextHandlerFactory
A factory to create a ContextHandler from a set of associated files.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The attribute name for the value holding the default class to used for creatingContextHandler
in the environmentstatic final String
The attribute name for the environment name.static final String
Attribute name that stores theList<Path>
pointing to XML files that represent the Environment XML files to apply to the ContextHandler has been created. -
Method Summary
Modifier and TypeMethodDescriptionnewContextHandler
(Server server, Environment environment, Path mainPath, Set<Path> otherPaths, Attributes deployAttributes)
-
Field Details
-
DEFAULT_CONTEXT_HANDLER_CLASS_ATTRIBUTE
The attribute name for the value holding the default class to used for creatingContextHandler
in the environment- See Also:
-
ENVIRONMENT_ATTRIBUTE
-
ENVIRONMENT_XML_PATHS_ATTRIBUTE
Attribute name that stores theList<Path>
pointing to XML files that represent the Environment XML files to apply to the ContextHandler has been created.- See Also:
-
-
Method Details
-
newContextHandler
ContextHandler newContextHandler(Server server, Environment environment, Path mainPath, Set<Path> otherPaths, Attributes deployAttributes) throws Exception - 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
-