@Beta public final class ServletRequestUrlHelper extends Object
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 com.google.common.net.HostAndPort |
getHostAndPort() |
static com.google.common.net.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 |
getRemoteAddress(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 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 com.google.common.net.HostAndPort getHostAndPort()
public static com.google.common.net.HostAndPort getHostAndPort(javax.servlet.http.HttpServletRequest req)
public static String getRemoteAddress(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)