mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-01 11:29:29 +00:00
395232 - UpgradeRequest object passed to createWebSocket() has null Session
+ Server side UpgradeRequest.getSession() now has HttpSession (if it has already been created)
This commit is contained in:
parent
32cb1045ba
commit
1aa6e63d25
@ -135,6 +135,17 @@ public class ServletWebSocketRequest extends UpgradeRequest
|
|||||||
return parameters;
|
return parameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the HttpSession if it exists.
|
||||||
|
* <p>
|
||||||
|
* Note: this is equivalent to {@link HttpServletRequest#getSession()} and will not create a new HttpSession.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Object getSession()
|
||||||
|
{
|
||||||
|
return this.req.getSession();
|
||||||
|
}
|
||||||
|
|
||||||
protected String[] parseProtocols(String protocol)
|
protected String[] parseProtocols(String protocol)
|
||||||
{
|
{
|
||||||
if (protocol == null)
|
if (protocol == null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user