Class OpenfireWebSocketServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.eclipse.jetty.websocket.servlet.WebSocketServlet
-
- org.jivesoftware.openfire.websocket.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 newXmppWebSocket
for each new connection.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenfireWebSocketServlet()
-
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 javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
-
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Servlet
- Overrides:
destroy
in classorg.eclipse.jetty.websocket.servlet.WebSocketServlet
-
configure
public void configure(org.eclipse.jetty.websocket.servlet.WebSocketServletFactory factory)
- Specified by:
configure
in classorg.eclipse.jetty.websocket.servlet.WebSocketServlet
-
-