Class PerspectiveWebSocketServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.eclipse.jetty.ee10.websocket.server.JettyWebSocketServlet
com.inductiveautomation.perspective.gateway.comm.PerspectiveWebSocketServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class PerspectiveWebSocketServlet
extends org.eclipse.jetty.ee10.websocket.server.JettyWebSocketServlet
Mounts a websocket servlet for use by the Perspective module. It is mounted during the module startup via the
GatewayHook
. The websocket is mounted at /main/system/pws, and the URL it expects to receive is:
for a client:
/pws/C/project_name/project_version/tab_id
for a designer:
/pws/D- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(org.eclipse.jetty.ee10.websocket.server.JettyWebSocketServletFactory factory) Methods inherited from class org.eclipse.jetty.ee10.websocket.server.JettyWebSocketServlet
destroy, init, service
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service
Methods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
-
Constructor Details
-
PerspectiveWebSocketServlet
public PerspectiveWebSocketServlet()
-
-
Method Details
-
configure
public void configure(org.eclipse.jetty.ee10.websocket.server.JettyWebSocketServletFactory factory) - Specified by:
configure
in classorg.eclipse.jetty.ee10.websocket.server.JettyWebSocketServlet
-