Modifier and Type | Field and Description |
---|---|
static String |
X_FORWARDED_HOST |
static String |
X_FORWARDED_PROTO |
Constructor and Description |
---|
ServletRequestUrlHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
createUri(javax.servlet.http.HttpServletRequest req,
String path) |
static String |
createUri(String path) |
static String |
getFullUrl() |
static String |
getFullUrl(javax.servlet.http.HttpServletRequest req) |
static String |
getHost() |
static String |
getHost(javax.servlet.http.HttpServletRequest req) |
static HostAndPort |
getHostAndPort() |
static HostAndPort |
getHostAndPort(javax.servlet.http.HttpServletRequest req) |
static String |
getPath() |
static String |
getPath(javax.servlet.http.HttpServletRequest req) |
static int |
getPort() |
static int |
getPort(javax.servlet.http.HttpServletRequest req) |
static String |
getScheme() |
static String |
getScheme(javax.servlet.http.HttpServletRequest req) |
static String |
getServerUrl() |
static String |
getServerUrl(javax.servlet.http.HttpServletRequest req) |
static UriRewritingResult |
rewriteUri(javax.servlet.http.HttpServletRequest req,
String uri) |
static UriRewritingResult |
rewriteUri(String uri) |
public static final String X_FORWARDED_PROTO
public static final String X_FORWARDED_HOST
public static String getScheme()
public static String getScheme(javax.servlet.http.HttpServletRequest req)
public static String getHost()
public static String getHost(javax.servlet.http.HttpServletRequest req)
public static int getPort()
public static int getPort(javax.servlet.http.HttpServletRequest req)
public static HostAndPort getHostAndPort()
public static HostAndPort getHostAndPort(javax.servlet.http.HttpServletRequest req)
public static String getPath()
public static String getPath(javax.servlet.http.HttpServletRequest req)
public static String getServerUrl()
public static String getServerUrl(javax.servlet.http.HttpServletRequest req)
public static String getFullUrl()
public static String getFullUrl(javax.servlet.http.HttpServletRequest req)
public static UriRewritingResult rewriteUri(String uri)
public static UriRewritingResult rewriteUri(javax.servlet.http.HttpServletRequest req, String uri)