Class HttpController

    • 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​(javax.servlet.ServletRequest req,
                                  javax.servlet.ServletResponse resp)
                           throws javax.servlet.ServletException,
                                  IOException
        Specified by:
        service in interface javax.servlet.Servlet
        Overrides:
        service in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException