Class PerspectiveWebSocketServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.eclipse.jetty.websocket.server.JettyWebSocketServlet
com.inductiveautomation.perspective.gateway.comm.PerspectiveWebSocketServlet
- All Implemented Interfaces:
- Serializable,- javax.servlet.Servlet,- javax.servlet.ServletConfig
public class PerspectiveWebSocketServlet
extends org.eclipse.jetty.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 SummaryFieldsModifier and TypeFieldDescriptionstatic final StringSystem property key which may be used to disable the websocket's support of the 'permessage-deflate' extension, a value generally provided by modern browsers as part of theHttpHeader.SEC_WEBSOCKET_EXTENSIONSheader.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidconfigure(org.eclipse.jetty.websocket.server.JettyWebSocketServletFactory factory) Methods inherited from class org.eclipse.jetty.websocket.server.JettyWebSocketServletinit, serviceMethods inherited from class javax.servlet.http.HttpServletdoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods inherited from class javax.servlet.GenericServletdestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
- 
Field Details- 
PERMESSAGE_DEFLATE_DISABLESystem property key which may be used to disable the websocket's support of the 'permessage-deflate' extension, a value generally provided by modern browsers as part of theHttpHeader.SEC_WEBSOCKET_EXTENSIONSheader. Setting a system property value of 'true' will remove support and may enable proxy/firewall support in systems lacking support compressed-frame forwarding, such as some versions of Microsoft IIS ARR based rewriting proxy servers.- See Also:
 
 
- 
- 
Constructor Details- 
PerspectiveWebSocketServletpublic PerspectiveWebSocketServlet()
 
- 
- 
Method Details- 
configurepublic void configure(org.eclipse.jetty.websocket.server.JettyWebSocketServletFactory factory) - Specified by:
- configurein class- org.eclipse.jetty.websocket.server.JettyWebSocketServlet
 
 
-