Class JsrCreator
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.server.JsrCreator
-
- All Implemented Interfaces:
WebSocketCreator
public class JsrCreator extends java.lang.Object implements WebSocketCreator
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROP_LOCAL_ADDRESS
static java.lang.String
PROP_LOCALES
static java.lang.String
PROP_REMOTE_ADDRESS
-
Constructor Summary
Constructors Constructor Description JsrCreator(WebSocketContainerScope containerScope, ServerEndpointMetadata metadata, ExtensionFactory extensionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
createWebSocket(ServletUpgradeRequest req, ServletUpgradeResponse resp)
Create a websocket from the incoming request.java.lang.String
toString()
-
-
-
Field Detail
-
PROP_REMOTE_ADDRESS
public static final java.lang.String PROP_REMOTE_ADDRESS
- See Also:
- Constant Field Values
-
PROP_LOCAL_ADDRESS
public static final java.lang.String PROP_LOCAL_ADDRESS
- See Also:
- Constant Field Values
-
PROP_LOCALES
public static final java.lang.String PROP_LOCALES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JsrCreator
public JsrCreator(WebSocketContainerScope containerScope, ServerEndpointMetadata metadata, ExtensionFactory extensionFactory)
-
-
Method Detail
-
createWebSocket
public java.lang.Object createWebSocket(ServletUpgradeRequest req, ServletUpgradeResponse resp)
Description copied from interface:WebSocketCreator
Create a websocket from the incoming request.- Specified by:
createWebSocket
in interfaceWebSocketCreator
- Parameters:
req
- the request detailsresp
- the response details- Returns:
- a websocket object to use, or null if no websocket should be created from this request.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-