Class HttpController

    • Field Summary

      • Fields inherited from class jakarta.servlet.http.HttpServlet

        LEGACY_DO_HEAD
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpController​(String name, String mapping)
      Creates an instance with a given name and a given mapping.
    • Constructor Detail

      • HttpController

        public HttpController​(String name,
                              String mapping)
        Creates an instance with a given name and a given mapping.
        Parameters:
        name - the name
        mapping - the mapping
    • Method Detail

      • addResources

        public void addResources​(ApiResource... resources)
        Adds one ore more ApiResources to this controller.
        Parameters:
        resources - the resources
      • service

        public final void service​(jakarta.servlet.ServletRequest req,
                                  jakarta.servlet.ServletResponse resp)
                           throws jakarta.servlet.ServletException,
                                  IOException
        Specified by:
        service in interface jakarta.servlet.Servlet
        Overrides:
        service in class jakarta.servlet.http.HttpServlet
        Throws:
        jakarta.servlet.ServletException
        IOException