public String getFullRequestUrl() {
HttpServletRequest r = getHttpRequest();
UrlBuilder builder = new UrlBuilder(r.getContextPath());
builder.scheme(r.getScheme()).serverName(r.getServerName()).port(r.getServerPort());
builder.requestURI(r.getRequestURI()).pathInfo(r.getPathInfo());
builder.queryString(r.getQueryString());
return builder.buildUrl();
}
public HttpServletRequest getHttpRequest() {
return (HttpServletRequest) request;