public final class MatchInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANY_FRAGMENT
A value representing all and any fragments.
|
static java.lang.String |
ANY_HOST
A value representing all and any hosts.
|
static org.springframework.http.HttpMethod |
ANY_METHOD
A value representing all and any queries.
|
static java.lang.String |
ANY_PATH
A value representing all and any paths.
|
static int |
ANY_PORT
A value representing all and any ports.
|
static java.lang.String |
ANY_QUERY
A value representing all and any queries.
|
static java.lang.String |
ANY_REALM
A value representing all and any realms.
|
static java.lang.String |
ANY_SCHEME
A value representing all and any schemes.
|
| Constructor and Description |
|---|
MatchInfo(java.lang.String scheme,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query,
java.lang.String fragment,
java.lang.String realm,
org.springframework.http.HttpMethod method)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static MatchInfo |
fromAuthScope(org.apache.http.auth.AuthScope authscope)
Create an info object from an authscope object.
|
static MatchInfo |
fromUri(java.net.URI uri,
org.springframework.http.HttpMethod method)
Create an info object from a uri and the http method object.
|
java.lang.String |
getFragment() |
java.lang.String |
getHost() |
java.lang.String |
getPath() |
int |
getPort() |
java.lang.String |
getQuery() |
java.lang.String |
getRealm() |
java.lang.String |
getScheme() |
public static final java.lang.String ANY_SCHEME
public static final java.lang.String ANY_HOST
public static final java.lang.String ANY_REALM
public static final java.lang.String ANY_PATH
public static final java.lang.String ANY_FRAGMENT
public static final java.lang.String ANY_QUERY
public static final org.springframework.http.HttpMethod ANY_METHOD
public static final int ANY_PORT
public MatchInfo(java.lang.String scheme,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query,
java.lang.String fragment,
java.lang.String realm,
org.springframework.http.HttpMethod method)
scheme - the scheme to match.host - the host to match.port - the host to match.path - the path to match.fragment - the fragment to match.query - the query to match.realm - the realm to match.method - the method to match.public static MatchInfo fromUri(java.net.URI uri, org.springframework.http.HttpMethod method)
uri - the urimethod - the methodpublic static MatchInfo fromAuthScope(org.apache.http.auth.AuthScope authscope)
authscope - the authscopepublic java.lang.String getScheme()
public java.lang.String getHost()
public int getPort()
public java.lang.String getPath()
public java.lang.String getFragment()
public java.lang.String getQuery()
public java.lang.String getRealm()