|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.libs.WS.WSRequest
public static class WS.WSRequest
Field Summary | |
---|---|
java.lang.String |
body
|
WS.FileParam[] |
fileParams
|
java.util.Map<java.lang.String,java.lang.String> |
headers
|
java.lang.String |
mimeType
|
java.util.Map<java.lang.String,java.lang.Object> |
parameters
|
java.lang.Integer |
timeout
|
java.lang.String |
url
|
Method Summary | |
---|---|
WS.WSRequest |
body(java.lang.String body)
Add the given body to the request. |
WS.HttpResponse |
delete()
Execute a DELETE request. |
WS.WSRequest |
files(java.io.File... files)
Add files to request. |
WS.WSRequest |
files(WS.FileParam... fileParams)
Add fileParams aka File and Name parameter to the request. |
WS.HttpResponse |
get()
Execute a GET request. |
WS.HttpResponse |
head()
Execute a HEAD request. |
WS.WSRequest |
headers(java.util.Map<java.lang.String,java.lang.String> headers)
Use the provided headers when executing request. |
WS.WSRequest |
mimeType(java.lang.String mimeType)
Add a MimeType to the web service request. |
WS.HttpResponse |
options()
Execute a OPTIONS request. |
WS.WSRequest |
params(java.util.Map<java.lang.String,java.lang.Object> parameters)
Add parameters to request. |
WS.HttpResponse |
post()
Execute a POST request. |
WS.HttpResponse |
put()
Execute a PUT request. |
WS.WSRequest |
setHeader(java.lang.String name,
java.lang.String value)
Add a header to the request |
WS.WSRequest |
setParameter(java.lang.String name,
java.lang.String value)
Add a parameter to the request |
WS.WSRequest |
timeout(int to)
|
WS.WSRequest |
timeout(java.lang.String duration)
|
WS.HttpResponse |
trace()
Execute a TRACE request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String url
public java.lang.String body
public WS.FileParam[] fileParams
public java.util.Map<java.lang.String,java.lang.String> headers
public java.util.Map<java.lang.String,java.lang.Object> parameters
public java.lang.String mimeType
public java.lang.Integer timeout
Method Detail |
---|
public WS.WSRequest mimeType(java.lang.String mimeType)
mimeType
-
public WS.WSRequest timeout(int to)
public WS.WSRequest timeout(java.lang.String duration)
public WS.WSRequest files(java.io.File... files)
files
-
public WS.WSRequest files(WS.FileParam... fileParams)
fileParams
-
public WS.WSRequest body(java.lang.String body)
body
-
public WS.WSRequest setHeader(java.lang.String name, java.lang.String value)
name
- header namevalue
- header value
public WS.WSRequest setParameter(java.lang.String name, java.lang.String value)
name
- parameter namevalue
- parameter value
public WS.WSRequest headers(java.util.Map<java.lang.String,java.lang.String> headers)
headers
-
public WS.WSRequest params(java.util.Map<java.lang.String,java.lang.Object> parameters)
public WS.HttpResponse get()
public WS.HttpResponse post()
public WS.HttpResponse put()
public WS.HttpResponse delete()
public WS.HttpResponse options()
public WS.HttpResponse head()
public WS.HttpResponse trace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |