Class HttpServletBase<Mediator,Context>

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.netcracker.profiler.servlet.HttpServletBase<Mediator,Context>
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable
Direct Known Subclasses:
TreeFetcher

public abstract class HttpServletBase<Mediator,Context> extends jakarta.servlet.http.HttpServlet
See Also:
  • 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 Context
     
    protected com.netcracker.profiler.io.exceptions.ErrorSupervisor
     
    protected void
    doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    protected void
    doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    protected abstract Mediator
    getMediator(Context context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, com.netcracker.profiler.output.layout.Layout layout)
     
    protected abstract Runnable
    identifyAction(Context context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, Mediator mediator)
     
    protected abstract com.netcracker.profiler.output.layout.Layout
    identifyLayout(Context context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    protected long
    parseLong(jakarta.servlet.http.HttpServletRequest request, String paramName, long defaultValue)
     

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPatch, 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 java.lang.Object

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

    • HttpServletBase

      public HttpServletBase()
  • Method Details

    • parseLong

      protected long parseLong(jakarta.servlet.http.HttpServletRequest request, String paramName, long defaultValue) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • doGet

      protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException
      Overrides:
      doGet in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • doPost

      protected void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException
      Overrides:
      doPost in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • createSupervisor

      protected com.netcracker.profiler.io.exceptions.ErrorSupervisor createSupervisor()
    • createContext

      protected Context createContext()
    • identifyLayout

      protected abstract com.netcracker.profiler.output.layout.Layout identifyLayout(Context context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
    • getMediator

      protected abstract Mediator getMediator(Context context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, com.netcracker.profiler.output.layout.Layout layout)
    • identifyAction

      protected abstract Runnable identifyAction(Context context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, Mediator mediator)