public interface IUrlBuilder
URLs.
Main goal of this class is to help adding query parameters to a URL.
IHttpPost| Modifier and Type | Method and Description |
|---|---|
IUrlBuilder |
addParam(java.lang.String name,
java.lang.Object value)
Adds a new query parameter.
|
IUrlBuilder |
addTimestamp()
Adds a timestamp query parameter ensuring that the URL will be unique and therefore its response won't be cached.
|
java.net.URL |
toUrl()
Builds and returns the
URL. |
IUrlBuilder addParam(java.lang.String name, java.lang.Object value)
name - name of the parameter to be addedvalue - value of the parameter to be added (value.toString() will be used)this for chainingIUrlBuilder addTimestamp()
The appended timestamp parameter name is t and its value is the value returned by System.currentTimeMillis() in radix 64, reversed.
this for chainingjava.net.URL toUrl()
URL.URL
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.