Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using StandardWebSocketClient it's not possible to customize ClientEndpointConfig before it's passed to WebSocketContainer.connectToServer method [SPR-12955] #17547

Closed
spring-issuemaster opened this issue Apr 25, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

commented Apr 25, 2015

Rostislav Georgiev Georgiev opened SPR-12955 and commented

StandardWebSocketClient in it's doHandshakeInternal method is using ClientEndpointConfig.Builder to initialize ClientEndpointConfig and is passing it directly to WebSocketContainer.connectToServer method.
ClientEndpointConfig has a UserProperties map, which can used to pass additional Container specific configurations. E.g. for example Tomcat WebSocket container will check userProperties for "org.apache.tomcat.websocket.SSL_CONTEXT" to setup SSLEngine.

It would be nice to have a way to supply StandardWebSocketClient with custom UserProperties.


Affects: 4.1.6

Referenced from: commits 222f699

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented May 4, 2015

Rossen Stoyanchev commented

This should be possible now. Please give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.