Class HttpBindServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class HttpBindServlet
    extends javax.servlet.http.HttpServlet
    Servlet which handles requests to the HTTP binding service. It determines if there is currently an HttpSession related to the connection or if one needs to be created and then passes it off to the HttpBindManager for processing of the client request and formulating of the response.
    Author:
    Alexander Wenckus
    See Also:
    Serialized Form
    • Constructor Detail

      • HttpBindServlet

        public HttpBindServlet()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig servletConfig)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Servlet
        Overrides:
        destroy in class javax.servlet.GenericServlet
      • service

        protected void service​(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response)
                        throws javax.servlet.ServletException,
                               IOException
        Overrides:
        service in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • doGet

        protected void doGet​(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
                      throws javax.servlet.ServletException,
                             IOException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • doPost

        protected void doPost​(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws javax.servlet.ServletException,
                              IOException
        Overrides:
        doPost in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • processContent

        protected void processContent​(javax.servlet.AsyncContext context,
                                      String content)
                               throws IOException
        Throws:
        IOException
      • createErrorBody

        protected static String createErrorBody​(String type,
                                                String condition)
      • getRemoteAddress

        protected static String getRemoteAddress​(javax.servlet.AsyncContext context)