Class OpenfireWebSocketServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.eclipse.jetty.websocket.server.JettyWebSocketServlet
-
- org.jivesoftware.openfire.websocket.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 newWebSocketClientConnectionHandler
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.server.JettyWebSocketServletFactory factory)
void
destroy()
protected void
service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
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 classjavax.servlet.GenericServlet
-
service
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Overrides:
service
in classorg.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 classorg.eclipse.jetty.websocket.server.JettyWebSocketServlet
-
-