[jboss-jira] [JBoss JIRA] (WFLY-2844) HandshakeRequest doesn't implement some methods
Martin Grigorov (JIRA)
issues at jboss.org
Thu Jan 30 09:33:29 EST 2014
Martin Grigorov created WFLY-2844:
-------------------------------------
Summary: HandshakeRequest doesn't implement some methods
Key: WFLY-2844
URL: https://issues.jboss.org/browse/WFLY-2844
Project: WildFly
Issue Type: Clarification
Security Level: Public (Everyone can see)
Components: Web (Undertow)
Affects Versions: 8.0.0.CR1
Environment: Wildfly 8.0.0CR1
Reporter: Martin Grigorov
Assignee: Stuart Douglas
Priority: Minor
My app is a .war file, deployed in $WFLY/standalone/deployments. It uses programmatic way (ServerApplicationConfig) to deploy web socket endpoint:
15:12:33,024 INFO [io.undertow.websockets.jsr] (MSC service thread 1-7) UT026005: Adding programmatic server endpoint class org.apache.wicket.protocol.ws.javax.WicketEndpoint for path /wicket/websocket
The configured ServerEndpointConfig uses custom Configurator to collect some data from the handshake request. More specifically I need the http session id.
javax.websocket.server.HandshakeRequest#getHttpSession() method has the following javadoc:
* @return the http session or {@code null} if either the websocket
* implementation is not part of a Java EE web container, or there is
* no HttpSession associated with the opening handshake request.
The HttpSession is bound before making the websocket request and I think the app is running in a Java EE web container, so handshkeRequest#getHttpSession() must not be null. But it is ...
Additionally I see that javax.websocket.server.HandshakeRequest#getParameterMap() seems to be not implemented too.
The websocket upgrade request has query string, and javax.websocket.server.HandshakeRequest#getQueryString() properly returns its value, but #getParameterMap() is empty.
I expect the map to contain the parsed parameters from the query string.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list