Interface WebSocketNegotiator
- All Superinterfaces:
 Configuration.Customizer
- All Known Implementing Classes:
 WebSocketNegotiator.AbstractNegotiator
- 
Nested Class Summary
Nested Classes - 
Method Summary
Modifier and TypeMethodDescriptiondefault voidcustomize(Configuration configurable) static WebSocketNegotiatorfrom(WebSocketCreator creator, FrameHandlerFactory factory) static WebSocketNegotiatorfrom(WebSocketCreator creator, FrameHandlerFactory factory, Configuration.Customizer customizer) negotiate(ServerUpgradeRequest request, ServerUpgradeResponse response, Callback callback) Creates aFrameHandlerfrom the incoming request. 
- 
Method Details
- 
negotiate
FrameHandler negotiate(ServerUpgradeRequest request, ServerUpgradeResponse response, Callback callback) Creates a
FrameHandlerfrom the incoming request.If the negotiator returns null it is responsible for completing the
Callbackand sending a response. If the negotiator intends to return non-nullFrameHandler, it MUST NOT write content to the response or complete theCallback, but it may modify the response headers.- 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 FrameHandler, or null to take responsibility to send error response if no WebSocket is to be created.
 
 - 
from
 - 
from
static WebSocketNegotiator from(WebSocketCreator creator, FrameHandlerFactory factory, Configuration.Customizer customizer)  - 
customize
- Specified by:
 customizein interfaceConfiguration.Customizer
 
 -