Class WSServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.eclipse.jetty.websocket.server.JettyWebSocketServlet
org.apache.activemq.transport.ws.jetty11.WSServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable,org.apache.activemq.broker.BrokerServiceAware
public class WSServlet
extends org.eclipse.jetty.websocket.server.JettyWebSocketServlet
implements org.apache.activemq.broker.BrokerServiceAware
Handle connection upgrade requests and creates web sockets
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.eclipse.jetty.websocket.server.JettyWebSocketServletFactory factory) protected voiddoGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voidinit()voidsetBrokerService(org.apache.activemq.broker.BrokerService brokerService) voidsetTransportOptions(Map<String, Object> transportOptions) Methods inherited from class org.eclipse.jetty.websocket.server.JettyWebSocketServlet
serviceMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
WSServlet
public WSServlet()
-
-
Method Details
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
initin classorg.eclipse.jetty.websocket.server.JettyWebSocketServlet- Throws:
jakarta.servlet.ServletException
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException - Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
configure
public void configure(org.eclipse.jetty.websocket.server.JettyWebSocketServletFactory factory) - Specified by:
configurein classorg.eclipse.jetty.websocket.server.JettyWebSocketServlet
-
setTransportOptions
-
setBrokerService
public void setBrokerService(org.apache.activemq.broker.BrokerService brokerService) - Specified by:
setBrokerServicein interfaceorg.apache.activemq.broker.BrokerServiceAware
-