Refactor SockJS code
- configure SockJS handler by type (as well as by instance) - add method to obtain SockJS handler instance via SockJsConfiguration - detect presense of jsr-356 and use it if available
This commit is contained in:
@@ -134,8 +134,10 @@ public class ServletServerHttpRequest implements ServerHttpRequest {
|
||||
public Cookies getCookies() {
|
||||
if (this.cookies == null) {
|
||||
this.cookies = new Cookies();
|
||||
for (Cookie cookie : this.servletRequest.getCookies()) {
|
||||
this.cookies.addCookie(cookie.getName(), cookie.getValue());
|
||||
if (this.servletRequest.getCookies() != null) {
|
||||
for (Cookie cookie : this.servletRequest.getCookies()) {
|
||||
this.cookies.addCookie(cookie.getName(), cookie.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.cookies;
|
||||
|
||||
Reference in New Issue
Block a user