public static String getHttpServletRequestUserAgent(final HttpServletRequest request) {
        if (request != null) {
            return request.getHeader(USER_AGENT_HEADER);
        }
        return null;
    }
public static String getHttpServletRequestUserAgent ( final HttpServletRequest request ) { if ( request != null ) { return request . getHeader ( USER_AGENT_HEADER ) ; } return null ; }
Gets http servlet request user agent.

@param request the request
@return the http servlet request user agent