Class OpenfireWebSocketServlet

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

    public class OpenfireWebSocketServlet
    extends org.eclipse.jetty.websocket.server.JettyWebSocketServlet
    This Servlet enables XMPP over WebSocket (RFC 7395) for Openfire. The Jetty WebSocketServlet serves as a base class and enables easy integration into the BOSH (http-bind) web context. Each WebSocket request received at the "/ws/" URI will be forwarded to this plugin/servlet, which will in turn create a new WebSocketClientConnectionHandler for each new connection.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure​(org.eclipse.jetty.websocket.server.JettyWebSocketServletFactory factory)  
      void destroy()  
      protected void service​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      • Methods inherited from class org.eclipse.jetty.websocket.server.JettyWebSocketServlet

        init
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
      • Methods inherited from class javax.servlet.GenericServlet

        getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
    • Constructor Detail

      • OpenfireWebSocketServlet

        public OpenfireWebSocketServlet()
    • Method Detail

      • 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 org.eclipse.jetty.websocket.server.JettyWebSocketServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • configure

        public void configure​(org.eclipse.jetty.websocket.server.JettyWebSocketServletFactory factory)
        Specified by:
        configure in class org.eclipse.jetty.websocket.server.JettyWebSocketServlet