All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.baltoro.remote.WSSessionConfig Maven / Gradle / Ivy

There is a newer version: 4.0.12
Show newest version
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