Class WSServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.eclipse.jetty.websocket.servlet.WebSocketServlet
-
- org.apache.activemq.transport.ws.jetty9.WSServlet
-
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
,BrokerServiceAware
public class WSServlet extends org.eclipse.jetty.websocket.servlet.WebSocketServlet implements BrokerServiceAware
Handle connection upgrade requests and creates web sockets- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WSServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(org.eclipse.jetty.websocket.servlet.WebSocketServletFactory factory)
protected void
doGet(HttpServletRequest request, HttpServletResponse response)
void
init()
void
setBrokerService(BrokerService brokerService)
void
setTransportOptions(Map<String,Object> transportOptions)
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
-
-
-
Method Detail
-
init
public void init() throws ServletException
- Overrides:
init
in classorg.eclipse.jetty.websocket.servlet.WebSocketServlet
- Throws:
ServletException
-
doGet
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
- Overrides:
doGet
in classHttpServlet
- Throws:
ServletException
IOException
-
configure
public void configure(org.eclipse.jetty.websocket.servlet.WebSocketServletFactory factory)
- Specified by:
configure
in classorg.eclipse.jetty.websocket.servlet.WebSocketServlet
-
setBrokerService
public void setBrokerService(BrokerService brokerService)
- Specified by:
setBrokerService
in interfaceBrokerServiceAware
-
-