public static class WS.WSWithEncoding extends Object
Constructor and Description |
---|
WSWithEncoding(String encoding) |
Modifier and Type | Method and Description |
---|---|
String |
encode(String part)
URL-encode a string to be used as a query string parameter.
|
WS.WSRequest |
url(String url)
Build a WebService Request with the given URL.
|
WS.WSRequest |
url(String url,
String... params)
Build a WebService Request with the given URL.
|
WS.WSWithEncoding |
withEncoding(String newEncoding)
Use this method to get an instance to WS with different encoding
|
public final String encoding
public WSWithEncoding(String encoding)
public WS.WSWithEncoding withEncoding(String newEncoding)
newEncoding
- the encoding to use in the communicationpublic String encode(String part)
part
- string to encodepublic WS.WSRequest url(String url)
url
- of the requestpublic WS.WSRequest url(String url, String... params)
url
- to format using the given params.params
- the params passed to format the URL.Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly