Class WebSocketHandler
java.lang.Object
org.apache.felix.http.base.internal.handler.WebSocketHandler
Class that handles initialization for servlets extending JettyWebSocketServlet.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isJettyWebSocketServlet
(Object servlet) Check if the servlet is a JettyWebSocketServlet.void
lazyInit()
boolean
Returns true if the servlet was initialized earlier, false otherwise.boolean
Returns true if the servlet should be initialized, false otherwise.
-
Constructor Details
-
WebSocketHandler
-
-
Method Details
-
lazyInit
public void lazyInit() -
shouldInit
public boolean shouldInit()Returns true if the servlet should be initialized, false otherwise.- Returns:
- true if the servlet should be initialized, false otherwise
-
shouldDestroy
public boolean shouldDestroy()Returns true if the servlet was initialized earlier, false otherwise.- Returns:
- true if the servlet should be destroyed, false otherwise
-
isJettyWebSocketServlet
Check if the servlet is a JettyWebSocketServlet. JettyWebSocket classes are handled differently due to FELIX-6746.- Parameters:
servlet
- the servlet to check- Returns:
- true if the servlet is a JettyWebSocketServlet, false otherwise
-