|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcitysdk.tourism.client.requests.uri.UriTemplate
public class UriTemplate
A simplified implementation of the URI Template (RFC6570) used to build the server URIs.
| Method Summary | |
|---|---|
java.lang.String |
build()
Builds the desired URI. |
static UriTemplate |
fromTemplate(java.lang.String template)
Generate a UriTemplate with a given template form. |
boolean |
hasParameter(java.lang.String name)
Checks whether the URI contains the given name in the templated area. |
UriTemplate |
set(java.lang.String name,
java.lang.Object value)
Set the values of each template |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static UriTemplate fromTemplate(java.lang.String template)
template - the wanted template
UriTemplate
public UriTemplate set(java.lang.String name,
java.lang.Object value)
name - the name of the templatevalue - the value of the template. Supported objects: simple objects
that implement toString() method, Collections and Maps.
UriTemplatepublic boolean hasParameter(java.lang.String name)
name - the name to find
true if the templated area contains the name,
false otherwisepublic java.lang.String build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||