Class OpenfireWebSocketServlet

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

    public class OpenfireWebSocketServlet
    extends org.eclipse.jetty.websocket.servlet.WebSocketServlet
    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 XmppWebSocket 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.servlet.WebSocketServletFactory factory)  
      void destroy()  
      • Methods inherited from class org.eclipse.jetty.websocket.servlet.WebSocketServlet

        init, service
      • 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
        destroy in class org.eclipse.jetty.websocket.servlet.WebSocketServlet
      • configure

        public void configure​(org.eclipse.jetty.websocket.servlet.WebSocketServletFactory factory)
        Specified by:
        configure in class org.eclipse.jetty.websocket.servlet.WebSocketServlet