class RestServiceKey extends ServiceKey
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
address
The basepath address.
|
(package private) java.lang.String |
context
The context path
|
(package private) java.lang.String[] |
parametersTypes
Types of parameters
|
(package private) java.lang.String |
path
The defined path.
|
(package private) java.lang.String[] |
paths
The path elements.
|
(package private) java.lang.String |
verb
The defined verb.
|
| Constructor and Description |
|---|
RestServiceKey(java.lang.String basePath,
java.lang.String address,
java.lang.String path,
java.lang.String verb,
java.util.List<java.lang.String> types)
Create a new key.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
buildContextPath(java.lang.String basePath,
java.lang.String address)
Build the rest service context path based on the given rest service base path and address.
|
boolean |
equals(java.lang.Object obj)
Check if the given object is the same as this one.
|
int |
hashCode()
Calculate the key's hashcode.
|
java.lang.String |
toString()
The string representation of this key (the path and verb).
|
final java.lang.String address
final java.lang.String path
final java.lang.String verb
final java.lang.String[] paths
final java.lang.String[] parametersTypes
final java.lang.String context
public RestServiceKey(java.lang.String basePath,
java.lang.String address,
java.lang.String path,
java.lang.String verb,
java.util.List<java.lang.String> types)
address - The basepath address.path - The defined path.verb - The defined verb.public static java.lang.String buildContextPath(java.lang.String basePath,
java.lang.String address)
basePath - The rest service bath pathaddress - The base path of the given rest methodpublic boolean equals(java.lang.Object obj)
equals in class ServiceKeyobj - The object to check for equality.public int hashCode()
hashCode in class ServiceKeypublic java.lang.String toString()
toString in class ServiceKey