Package io.milton.servlet
Class DefaultMiltonConfigurator
java.lang.Object
io.milton.servlet.DefaultMiltonConfigurator
- All Implemented Interfaces:
MiltonConfigurator
The default means of configuring milton's HttpManager.
Provide init-params to the filter or servlet to configure it:
- resource.factory.class - the class of your resource factory
- response.handler.class - specify if you want a different response handler
- authenticationHandlers - a list of class names for the authentication, replaces the default auth handler structure
- extraAuthenticationHandlers - a list of class names for the authentication, is added to the default auth handler structure
- handlers filter_X - define an ordered list of milton filters, where the name is in the form filter_1, filter_2, etc and the value is the name of the filter class
- Author:
- brad
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuild()Actually builds the httpManager.static <T> Tinstantiate(String className) voidshutdown()called on destroy from the servlet
-
Field Details
-
builder
-
initables
-
httpManager
-
-
Constructor Details
-
DefaultMiltonConfigurator
public DefaultMiltonConfigurator()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceMiltonConfigurator- Throws:
jakarta.servlet.ServletException
-
build
protected void build()Actually builds the httpManager. Can be overridden by subclasses -
shutdown
public void shutdown()Description copied from interface:MiltonConfiguratorcalled on destroy from the servlet- Specified by:
shutdownin interfaceMiltonConfigurator
-
instantiate
- Throws:
jakarta.servlet.ServletException
-