Package | Description |
---|---|
play.libs | |
play.libs.ws |
Modifier and Type | Method and Description |
---|---|
WS.WSRequest |
WS.WSRequest.authenticate(String username,
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(String username,
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(Object body)
Add the given body to the request.
|
WS.WSRequest |
WS.WSRequest.files(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(Map<String,String> headers)
Use the provided headers when executing request.
|
WS.WSRequest |
WS.WSRequest.mimeType(String mimeType)
Add a MimeType to the web service request.
|
WS.WSRequest |
WS.WSImpl.newRequest(String url,
String encoding) |
WS.WSRequest |
WS.WSRequest.oauth(OAuth.ServiceInfo oauthInfo,
OAuth.TokenPair oauthTokens)
Deprecated.
|
WS.WSRequest |
WS.WSRequest.oauth(OAuth.ServiceInfo oauthInfo,
String token,
String secret)
Sign the request for do a call to a server protected by oauth
|
WS.WSRequest |
WS.WSRequest.params(Map<String,Object> parameters)
Add parameters to request.
|
WS.WSRequest |
WS.WSRequest.setHeader(String name,
String value)
Add a header to the request
|
WS.WSRequest |
WS.WSRequest.setParameter(String name,
Object value) |
WS.WSRequest |
WS.WSRequest.setParameter(String name,
String value)
Add a parameter to the request
|
WS.WSRequest |
WS.WSRequest.setParameters(Map<String,String> parameters)
Add parameters to request.
|
WS.WSRequest |
WS.WSRequest.timeout(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(String url)
Build a WebService Request with the given URL.
|
WS.WSRequest |
WS.WSWithEncoding.url(String url)
Build a WebService Request with the given URL.
|
static WS.WSRequest |
WS.url(String url,
String... params)
Build a WebService Request with the given URL.
|
WS.WSRequest |
WS.WSWithEncoding.url(String url,
String... params)
Build a WebService Request with the given URL.
|
WS.WSRequest |
WS.WSRequest.withVirtualHost(String virtualHost)
Sets the virtual host to use in this request
|
Modifier and Type | Class and Description |
---|---|
class |
WSAsync.WSAsyncRequest |
class |
WSUrlFetch.WSUrlfetchRequest |
Modifier and Type | Method and Description |
---|---|
WS.WSRequest |
WSUrlFetch.newRequest(String url,
String encoding) |
WS.WSRequest |
WSAsync.newRequest(String url,
String encoding) |
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly