类 play.libs.WS.WSRequest
的使用

使用 WS.WSRequest 的软件包
play.libs   
play.libs.ws   
 

play.libsWS.WSRequest 的使用
 

返回 WS.WSRequestplay.libs 中的方法
 WS.WSRequest WS.WSRequest.authenticate(java.lang.String username, java.lang.String password)
          define client authentication for a server host provided credentials will be used during the request the basic scheme will be used
 WS.WSRequest WS.WSRequest.authenticate(java.lang.String username, java.lang.String password, WS.Scheme scheme)
          define client authentication for a server host provided credentials will be used during the request
 WS.WSRequest WS.WSRequest.body(java.lang.Object body)
          Add the given body to the request.
 WS.WSRequest WS.WSRequest.files(java.io.File... files)
          Add files to request.
 WS.WSRequest WS.WSRequest.files(WS.FileParam... fileParams)
          Add fileParams aka File and Name parameter to the request.
 WS.WSRequest WS.WSRequest.followRedirects(boolean value)
          Indicate if the WS should continue when hitting a 301 or 302
 WS.WSRequest WS.WSRequest.headers(java.util.Map<java.lang.String,java.lang.String> headers)
          Use the provided headers when executing request.
 WS.WSRequest WS.WSRequest.mimeType(java.lang.String mimeType)
          Add a MimeType to the web service request.
 WS.WSRequest WS.WSImpl.newRequest(java.lang.String url, java.lang.String encoding)
           
 WS.WSRequest WS.WSRequest.oauth(OAuth.ServiceInfo oauthInfo, OAuth.TokenPair oauthTokens)
          已过时。 
 WS.WSRequest WS.WSRequest.oauth(OAuth.ServiceInfo oauthInfo, java.lang.String token, java.lang.String secret)
          Sign the request for do a call to a server protected by oauth
 WS.WSRequest WS.WSRequest.params(java.util.Map<java.lang.String,java.lang.Object> parameters)
          Add parameters to request.
 WS.WSRequest WS.WSRequest.setHeader(java.lang.String name, java.lang.String value)
          Add a header to the request
 WS.WSRequest WS.WSRequest.setParameter(java.lang.String name, java.lang.Object value)
           
 WS.WSRequest WS.WSRequest.setParameter(java.lang.String name, java.lang.String value)
          Add a parameter to the request
 WS.WSRequest WS.WSRequest.setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
          Add parameters to request.
 WS.WSRequest WS.WSRequest.timeout(java.lang.String timeout)
          Set the value of the request timeout, i.e. the number of seconds before cutting the connection - default to 60 seconds
static WS.WSRequest WS.url(java.lang.String url)
          Build a WebService Request with the given URL.
 WS.WSRequest WS.WSWithEncoding.url(java.lang.String url)
          Build a WebService Request with the given URL.
static WS.WSRequest WS.url(java.lang.String url, java.lang.String... params)
          Build a WebService Request with the given URL.
 WS.WSRequest WS.WSWithEncoding.url(java.lang.String url, java.lang.String... params)
          Build a WebService Request with the given URL.
 

play.libs.wsWS.WSRequest 的使用
 

play.libs.wsWS.WSRequest 的子类
 class WSAsync.WSAsyncRequest
           
 class WSUrlFetch.WSUrlfetchRequest
           
 

返回 WS.WSRequestplay.libs.ws 中的方法
 WS.WSRequest WSUrlFetch.newRequest(java.lang.String url, java.lang.String encoding)
           
 WS.WSRequest WSAsync.newRequest(java.lang.String url, java.lang.String encoding)
           
 



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