|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplay.libs.WS.WSWithEncoding
public static class WS.WSWithEncoding
Internal class exposing all the methods previously exposed by WS. This impl has information about encoding. When calling original static methos on WS, then a singleton of WSWithEncoding is called - configured with default encoding. This makes this encoding-enabling backward compatible
| Field Summary | |
|---|---|
java.lang.String |
encoding
|
| Constructor Summary | |
|---|---|
WS.WSWithEncoding(java.lang.String encoding)
|
|
| Method Summary | |
|---|---|
java.lang.String |
encode(java.lang.String part)
URL-encode a string to be used as a query string parameter. |
WS.WSRequest |
url(java.lang.String url)
Build a WebService Request with the given URL. |
WS.WSRequest |
url(java.lang.String url,
java.lang.String... params)
Build a WebService Request with the given URL. |
WS.WSWithEncoding |
withEncoding(java.lang.String newEncoding)
Use thos method to get an instance to WS with diferent encoding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String encoding
| Constructor Detail |
|---|
public WS.WSWithEncoding(java.lang.String encoding)
| Method Detail |
|---|
public WS.WSWithEncoding withEncoding(java.lang.String newEncoding)
newEncoding - the encoding to use in the communication
public java.lang.String encode(java.lang.String part)
part - string to encode
public WS.WSRequest url(java.lang.String url)
url - of the request
public WS.WSRequest url(java.lang.String url,
java.lang.String... params)
url - to format using the given params.params - the params passed to format the URL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||