Package javax.websocket
Class ClientEndpointConfig.Configurator
java.lang.Object
javax.websocket.ClientEndpointConfig.Configurator
- Enclosing interface:
- ClientEndpointConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterResponse
(HandshakeResponse handshakeResponse) Provides the client with a mechanism to inspect the handshake response that is returned from the server.void
beforeRequest
(Map<String, List<String>> headers) Provides the client with a mechanism to inspect and/or modify the headers that are sent to the server to start the WebSocket handshake.
-
Constructor Details
-
Configurator
public Configurator()
-
-
Method Details
-
beforeRequest
Provides the client with a mechanism to inspect and/or modify the headers that are sent to the server to start the WebSocket handshake.- Parameters:
headers
- The HTTP headers
-
afterResponse
Provides the client with a mechanism to inspect the handshake response that is returned from the server.- Parameters:
handshakeResponse
- The response
-