public static String getFullUrl(final HttpServletRequest request) {
		String url = request.getRequestURI();
		String query = request.getQueryString();
		if ((query != null) && (query.length() != 0)) {
			url += '?' + query;
		}
		return url;
	}
public static String getFullUrl(final HttpServletRequest request) {
		String url = request.getRequestURI();
		String query = request.getQueryString();
		if ((query != null) && (query.length() != 0)) {
			url += '?' + query;
		}
		return url;
	}
public static String getFullUrl ( final HttpServletRequest request ) { String url = request . getRequestURI ( ) ; String query = request . getQueryString ( ) ; if ( ( query != null ) && ( query . length ( ) != 0 ) ) { url += ' ' + query ; } return url ; }
Returns full URL: uri + query string, including the context path.
Returns full URL : uri + query string including the context path .