public interface WebSocketCreator
Should you desire filtering of the WebSocket object creation due to criteria such as origin or sub-protocol, then you will be required to implement a custom WebSocketCreator implementation.
This has been moved from the WebSocketServlet to a standalone class managed by the WebSocketServerFactory due to need of WebSocket Extension
s that
require the ability to create new websockets (such as the mux extension)
Modifier and Type | Method and Description |
---|---|
Object |
createWebSocket(UpgradeRequest req,
UpgradeResponse resp)
Create a websocket from the incoming request.
|
Object createWebSocket(UpgradeRequest req, UpgradeResponse resp)
Note: if you have Servlet specific information you need to access from the UpgradeRequest, cast the UpgradeRequest
to
ServletUpgradeRequest
for this extra information.
Future versions of this interface will change to use the Servlet specific Upgrade Request and Response parameters.
req
- the request detailsresp
- the response detailsCopyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.