|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectplay.libs.WS.WSRequestHolder
public static class WS.WSRequestHolder
provides the User facing API for building WS request.
| Constructor Summary | |
|---|---|
WS.WSRequestHolder(java.lang.String url)
|
|
| Method Summary | |
|---|---|
F.Promise<WS.Response> |
delete()
Perform a DELETE on the request asynchronously. |
F.Promise<WS.Response> |
get()
Perform a GET on the request asynchronously. |
F.Promise<WS.Response> |
head()
Perform a HEAD on the request asynchronously. |
F.Promise<WS.Response> |
option()
Perform a OPTION on the request asynchronously. |
F.Promise<WS.Response> |
post(java.io.File body)
Perform a POST on the request asynchronously. |
F.Promise<WS.Response> |
post(java.io.InputStream body)
Perform a POST on the request asynchronously. |
F.Promise<WS.Response> |
post(java.lang.String body)
Perform a POST on the request asynchronously. |
F.Promise<WS.Response> |
put(java.io.File body)
Perform a PUT on the request asynchronously. |
F.Promise<WS.Response> |
put(java.io.InputStream body)
Perform a PUT on the request asynchronously. |
F.Promise<WS.Response> |
put(java.lang.String body)
Perform a PUT on the request asynchronously. |
WS.WSRequestHolder |
setAuth(java.lang.String username,
java.lang.String password,
com.ning.http.client.Realm.AuthScheme scheme)
Sets the authentication header for the current request. |
WS.WSRequestHolder |
setHeader(java.lang.String name,
java.lang.String value)
Sets a header with the given name, this can be called repeatedly |
WS.WSRequestHolder |
setQueryParameter(java.lang.String name,
java.lang.String value)
Sets a query parameter with the given name,this can be called repeatedly |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WS.WSRequestHolder(java.lang.String url)
| Method Detail |
|---|
public WS.WSRequestHolder setHeader(java.lang.String name,
java.lang.String value)
name - value -
public WS.WSRequestHolder setQueryParameter(java.lang.String name,
java.lang.String value)
name - value -
public WS.WSRequestHolder setAuth(java.lang.String username,
java.lang.String password,
com.ning.http.client.Realm.AuthScheme scheme)
username - password - scheme - authentication schemepublic F.Promise<WS.Response> get()
public F.Promise<WS.Response> post(java.lang.String body)
body - represented as Stringpublic F.Promise<WS.Response> put(java.lang.String body)
body - represented as Stringpublic F.Promise<WS.Response> post(java.io.InputStream body)
body - represented as an InputStreampublic F.Promise<WS.Response> put(java.io.InputStream body)
body - represented as an InputStreampublic F.Promise<WS.Response> post(java.io.File body)
body - represented as a Filepublic F.Promise<WS.Response> put(java.io.File body)
body - represented as a Filepublic F.Promise<WS.Response> delete()
public F.Promise<WS.Response> head()
public F.Promise<WS.Response> option()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||