Interface WebSocketServletFactory
-
- All Known Implementing Classes:
WebSocketServerFactory
@Deprecated(since="2021-05-27") public interface WebSocketServletFactoryDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Basic WebSocketServletFactory for working with Jetty-based WebSocketServlets
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classWebSocketServletFactory.LoaderDeprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanacceptWebSocket(HttpServletRequest request, HttpServletResponse response)Deprecated.booleanacceptWebSocket(WebSocketCreator creator, HttpServletRequest request, HttpServletResponse response)Deprecated.java.util.Set<java.lang.String>getAvailableExtensionNames()Deprecated.Get the set of available Extensions by registered name.WebSocketCreatorgetCreator()Deprecated.ExtensionFactorygetExtensionFactory()Deprecated.this class is removed from Jetty 10.0.0+.WebSocketPolicygetPolicy()Deprecated.Get the base policy in use for WebSockets.booleanisUpgradeRequest(HttpServletRequest request, HttpServletResponse response)Deprecated.voidregister(java.lang.Class<?> websocketPojo)Deprecated.Register a websocket class pojo with the defaultWebSocketCreator.voidsetCreator(WebSocketCreator creator)Deprecated.voidstart()Deprecated.voidstop()Deprecated.
-
-
-
Method Detail
-
acceptWebSocket
boolean acceptWebSocket(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
acceptWebSocket
boolean acceptWebSocket(WebSocketCreator creator, HttpServletRequest request, HttpServletResponse response) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
start
void start() throws java.lang.ExceptionDeprecated.- Throws:
java.lang.Exception
-
stop
void stop() throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
getAvailableExtensionNames
java.util.Set<java.lang.String> getAvailableExtensionNames()
Deprecated.Get the set of available Extensions by registered name.- Returns:
- the set of available extensions by registered name.
-
getCreator
WebSocketCreator getCreator()
Deprecated.
-
getExtensionFactory
@Deprecated ExtensionFactory getExtensionFactory()
Deprecated.this class is removed from Jetty 10.0.0+. To remove specific extensions from negotiation useWebSocketCreatorto remove then during handshake.Get the registered extensions for this WebSocket factory.- Returns:
- the ExtensionFactory
- See Also:
getAvailableExtensionNames()
-
getPolicy
WebSocketPolicy getPolicy()
Deprecated.Get the base policy in use for WebSockets.Note: individual WebSocket implementations can override some of the values in here by using the
@WebSocketannotation.- Returns:
- the base policy
-
isUpgradeRequest
boolean isUpgradeRequest(HttpServletRequest request, HttpServletResponse response)
Deprecated.
-
register
void register(java.lang.Class<?> websocketPojo)
Deprecated.Register a websocket class pojo with the defaultWebSocketCreator.Note: only required if using the default
WebSocketCreatorprovided by this factory.- Parameters:
websocketPojo- the class to instantiate for each incoming websocket upgrade request.
-
setCreator
void setCreator(WebSocketCreator creator)
Deprecated.
-
-