Class ReloadingWicketServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.apache.wicket.protocol.http.WicketServlet
org.apache.wicket.protocol.http.ReloadingWicketServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

Custom WicketServlet that reloads the web applications when classes are modified. In order to reload your own classes, use include and exclude patterns using wildcards. And in web.xml, point to the reloading wicket servlet instead of the original one.

Example denoting the built-in patterns:

 public class MyServlet extends ReloadingWicketServlet
 {
        static
        {
                ReloadingClassLoader.excludePattern("org.apache.wicket.*");
                ReloadingClassLoader.includePattern("org.apache.wicket.examples.*");
        }
 }
 
Author:
Jean-Baptiste Quenot
See Also:
  • Field Summary

    Fields inherited from class org.apache.wicket.protocol.http.WicketServlet

    wicketFilter

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected WicketFilter
     

    Methods inherited from class org.apache.wicket.protocol.http.WicketServlet

    destroy, doGet, doPost, init

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPut, doTrace, getLastModified, init, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

    getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait