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

prompto.server.HttpUserReader Maven / Gradle / Ivy

There is a newer version: 0.1.57
Show newest version
package prompto.server;

import java.security.Principal;

import javax.servlet.http.HttpServletRequest;

public abstract class HttpUserReader {
	
	public static void readAndSet(HttpServletRequest request) {
		Principal principal = request.getUserPrincipal();
		String user = principal!=null ? principal.getName() : "";
		AppServer.setHttpUser(user);
		
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy