public static String getFullRequestUrl(HttpServletRequest request) {
        StringBuilder buff = new StringBuilder(
                request.getRequestURL().toString());
        String queryString = request.getQueryString();
        if (queryString != null) {
            buff.append("?").append(queryString);
        }

        return buff.toString();
    }
public static String getFullRequestUrl ( HttpServletRequest request ) { StringBuilder buff = new StringBuilder ( request . getRequestURL ( ) . toString ( ) ) ; String queryString = request . getQueryString ( ) ; if ( queryString != null ) { buff . append ( "?" ) . append ( queryString ) ; } return buff . toString ( ) ; }
get request full url, include params
@param request current request
@return request full url, include params