Class ServletFixtures.DebugServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.apache.solr.util.ServletFixtures.DebugServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable
Enclosing class:
ServletFixtures

public static class ServletFixtures.DebugServlet extends jakarta.servlet.http.HttpServlet
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static jakarta.servlet.http.Cookie[]
     
    static Integer
     
     
    static String
     
    static Map<String,String[]>
     
    static String
     
    static byte[]
     
    static Map<String,Object>
     
    static List<String[]>
     
    static String
     

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addResponseHeader(String headerName, String headerValue)
     
    static void
     
    protected void
    doDelete(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    protected void
    doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    protected void
    doHead(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    protected void
    doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    protected void
    doPut(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    static void
     

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doOptions, doTrace, getLastModified, init, 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
  • Field Details

    • errorCode

      public static Integer errorCode
    • lastMethod

      public static String lastMethod
    • url

      public static String url
    • headers

      public static HashMap<String,String> headers
    • parameters

      public static Map<String,String[]> parameters
    • queryString

      public static String queryString
    • cookies

      public static jakarta.servlet.http.Cookie[] cookies
    • responseHeaders

      public static List<String[]> responseHeaders
    • responseBodyByQueryFragment

      public static Map<String,Object> responseBodyByQueryFragment
    • requestBody

      public static byte[] requestBody
  • Constructor Details

    • DebugServlet

      public DebugServlet()
  • Method Details

    • clear

      public static void clear()
    • setErrorCode

      public static void setErrorCode(Integer code)
    • addResponseHeader

      public static void addResponseHeader(String headerName, String headerValue)
    • doDelete

      protected void doDelete(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException
      Overrides:
      doDelete in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • 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
    • doHead

      protected void doHead(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException
      Overrides:
      doHead 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
    • doPut

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