Java examples for Network:User Agent
Get USER AGENT from HttpServletRequest
import javax.servlet.http.HttpServletRequest; public class Main{ /*from ww w .j ava 2 s. c o m*/ public static String getAgent(HttpServletRequest request) { return request.getHeader("USER-AGENT"); } }