Class DefaultMiltonConfigurator

java.lang.Object
io.milton.servlet.DefaultMiltonConfigurator
All Implemented Interfaces:
MiltonConfigurator

public class DefaultMiltonConfigurator extends Object implements 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 Details

  • Constructor Details

    • DefaultMiltonConfigurator

      public DefaultMiltonConfigurator()
  • Method Details

    • configure

      public HttpManager configure(Config config) throws jakarta.servlet.ServletException
      Specified by:
      configure in interface MiltonConfigurator
      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: MiltonConfigurator
      called on destroy from the servlet
      Specified by:
      shutdown in interface MiltonConfigurator
    • instantiate

      public static <T> T instantiate(String className) throws jakarta.servlet.ServletException
      Throws:
      jakarta.servlet.ServletException