Class GenericServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.deltava.servlet.GenericServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable
Direct Known Subclasses:
BasicAuthServlet, CommandServlet, LibraryServlet, LinkServlet, SignatureServlet, TileServlet

abstract class GenericServlet extends jakarta.servlet.http.HttpServlet
A class storing common servlet helper methods.
Since:
1.0
Version:
11.3
Author:
Luke
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected final class 
    Controller exception to handle 403s.
    protected final class 
    Controller exception to handle 404s.
    protected class 
    Security Context for use within servlets.
  • Field Summary

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static String
    getURL(jakarta.servlet.http.HttpServletRequest req)
    Returns the full URL requested.

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GenericServlet

      GenericServlet()
  • Method Details

    • getURL

      protected static String getURL(jakarta.servlet.http.HttpServletRequest req)
      Returns the full URL requested.
      Parameters:
      req - the HttpServletRequest
      Returns:
      the URL