@SuppressWarnings("JdkObsolete")
    public static String getHttpRequestFullUrl(final HttpServletRequest request) {
        val requestURL = request.getRequestURL();
        val queryString = request.getQueryString();
        return Optional.ofNullable(queryString).map(query -> requestURL.append('?').append(query).toString()).orElseGet(requestURL::toString);
    }
Gets http request full url.

@param request the request
@return the http request full url
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java