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.StringPROP_LOCAL_ADDRESSstatic java.lang.StringPROP_LOCALESstatic java.lang.StringPROP_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.ObjectcreateWebSocket(ServletUpgradeRequest req, ServletUpgradeResponse resp)Create a websocket from the incoming request.java.lang.StringtoString()
-
-
-
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:WebSocketCreatorCreate a websocket from the incoming request.- Specified by:
createWebSocketin 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:
toStringin classjava.lang.Object
-
-