io.baltoro.remote.WSSessionConfig Maven / Gradle / Ivy
package io.baltoro.remote;
import javax.websocket.HandshakeResponse;
import javax.websocket.server.HandshakeRequest;
import javax.websocket.server.ServerEndpointConfig;
public class WSSessionConfig extends ServerEndpointConfig.Configurator
{
//String remoteAddress;
@Override
public void modifyHandshake(ServerEndpointConfig config,
HandshakeRequest request,
HandshakeResponse response)
{
/*
HttpSession httpSession = (HttpSession)request.getHttpSession();
Map> headers = request.getHeaders();
URI uri = request.getRequestURI();
String hostName = uri.getHost();
System.out.println(">>>>>>>>>>> host >>>>>>> "+hostName);
config.getUserProperties().put("session",httpSession);
config.getUserProperties().put("header",headers);
*/
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy