play.libs
类 WS.WSWithEncoding

java.lang.Object
  继承者 play.libs.WS.WSWithEncoding
包容类:
WS

public static class WS.WSWithEncoding
extends java.lang.Object

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


字段摘要
 java.lang.String encoding
           
 
构造方法摘要
WS.WSWithEncoding(java.lang.String encoding)
           
 
方法摘要
 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
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

encoding

public final java.lang.String encoding
构造方法详细信息

WS.WSWithEncoding

public WS.WSWithEncoding(java.lang.String encoding)
方法详细信息

withEncoding

public WS.WSWithEncoding withEncoding(java.lang.String newEncoding)
Use thos method to get an instance to WS with diferent encoding

参数:
newEncoding - the encoding to use in the communication
返回:
a new instance of WS with specified encoding

encode

public java.lang.String encode(java.lang.String part)
URL-encode a string to be used as a query string parameter.

参数:
part - string to encode
返回:
url-encoded string

url

public WS.WSRequest url(java.lang.String url)
Build a WebService Request with the given URL. This object support chaining style programming for adding params, file, headers to requests.

参数:
url - of the request
返回:
a WSRequest on which you can add params, file headers using a chaining style programming.

url

public WS.WSRequest url(java.lang.String url,
                        java.lang.String... params)
Build a WebService Request with the given URL. This constructor will format url using params passed in arguments. This object support chaining style programming for adding params, file, headers to requests.

参数:
url - to format using the given params.
params - the params passed to format the URL.
返回:
a WSRequest on which you can add params, file headers using a chaining style programming.


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly