Java examples for javax.servlet.http:HttpServletRequest
is WebKit from HttpServletRequest
import javax.servlet.http.HttpServletRequest; public class Main{ //from w w w. ja v a2 s . co m public static boolean isWebKit(HttpServletRequest request) { String agent = getAgent(request); if (null != agent && -1 != agent.indexOf("WebKit")) { return true; } return false; } public static String getAgent(HttpServletRequest request) { return request.getHeader("USER-AGENT"); } }