Class JakartaWebSocketCreator
java.lang.Object
org.eclipse.jetty.ee10.websocket.jakarta.server.internal.JakartaWebSocketCreator
- All Implemented Interfaces:
WebSocketCreator
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJakartaWebSocketCreator
(JakartaWebSocketContainer containerScope, jakarta.websocket.server.ServerEndpointConfig config, WebSocketExtensionRegistry extensionRegistry) -
Method Summary
Modifier and TypeMethodDescriptioncreateWebSocket
(ServerUpgradeRequest request, ServerUpgradeResponse response, Callback callback) Create a websocket from the incoming request.boolean
int
hashCode()
toString()
-
Field Details
-
PROP_REMOTE_ADDRESS
- See Also:
-
PROP_LOCAL_ADDRESS
- See Also:
-
PROP_LOCALES
- See Also:
-
-
Constructor Details
-
JakartaWebSocketCreator
public JakartaWebSocketCreator(JakartaWebSocketContainer containerScope, jakarta.websocket.server.ServerEndpointConfig config, WebSocketExtensionRegistry extensionRegistry)
-
-
Method Details
-
createWebSocket
public Object createWebSocket(ServerUpgradeRequest request, ServerUpgradeResponse response, Callback callback) Description copied from interface:WebSocketCreator
Create a websocket from the incoming request.If the creator returns null it is responsible for completing the
Callback
and sending a response. But if the creator intends to return non-null WebSocket object, it MUST NOT write content to the response or complete theCallback
, but it may modify the response headers.- Specified by:
createWebSocket
in interfaceWebSocketCreator
- Parameters:
request
- the request detailsresponse
- the response detailscallback
- the callback, should only be completed by the creator if a null WebSocket object is returned.- Returns:
- the WebSocket object, or null to take responsibility to send error response if no WebSocket is to be created.
-
equals
-
hashCode
public int hashCode() -
toString
-