public final class RequestUrl extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Modifier and Type | Method and Description |
---|---|
static String |
getRelativeUrl(javax.servlet.http.HttpServletRequest request,
boolean servlet)
Get the relative url to the current servlet.
|
public static String getRelativeUrl(javax.servlet.http.HttpServletRequest request, boolean servlet)
Uses the request URI and removes : the context path, the servlet path if used.
request
- The current HTTP requestservlet
- true to remove the servlet pathCopyright © 2008–2018. All rights reserved.