|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.netheos.pcsapi.utils.URIBuilder
public class URIBuilder
| Constructor Summary | |
|---|---|
URIBuilder(URI baseURI)
|
|
| Method Summary | |
|---|---|
URIBuilder |
addNullParameter(String key)
Add a null query parameter (without any value). |
URIBuilder |
addParameter(String key,
String value)
Add a single query parameter. |
URI |
build()
Build the URI with the given informations |
URIBuilder |
encodedPath(String encodedPath)
Add an already escaped encodedPath part. |
URIBuilder |
queryParameters(Map<String,String> queryParams)
Set the query parameters |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public URIBuilder(URI baseURI)
baseURI - should NOT contain any query| Method Detail |
|---|
public final URIBuilder encodedPath(String encodedPath)
encodedPath - The url encoded encodedPath (may contain slashs)
public URIBuilder queryParameters(Map<String,String> queryParams)
queryParams - The parameters to use in the URI (not url encoded)
public URIBuilder addNullParameter(String key)
key - The parameter key (not url encoded)
public URIBuilder addParameter(String key,
String value)
key - The parameter key (not url encoded)value - The parameter value (not url encoded)
public String toString()
toString in class Objectpublic URI build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||