private HandshakeRequest createHandshakeRequest(final UpgradeRequest webSocketRequest) { if (webSocketRequest instanceof RequestContext) { final RequestContext requestContext = (RequestContext) webSocketRequest; // TYRUS-208; spec requests headers to be read only when passed to ServerEndpointConfig // .Configurator#modifyHandshake. // TYRUS-211; spec requests parameterMap to be read only when passed to ServerEndpointConfig // .Configurator#modifyHandshake. requestContext.lock(); return requestContext; } return null; }
private HandshakeRequest createHandshakeRequest(final UpgradeRequest webSocketRequest) { if (webSocketRequest instanceof RequestContext) { final RequestContext requestContext = (RequestContext) webSocketRequest; // TYRUS-208; spec requests headers to be read only when passed to ServerEndpointConfig // .Configurator#modifyHandshake. // TYRUS-211; spec requests parameterMap to be read only when passed to ServerEndpointConfig // .Configurator#modifyHandshake. requestContext.lock(); return requestContext; } return null; }