public class WSAsync.WSAsyncRequest extends WS.WSRequest
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
type |
body, encoding, fileParams, followRedirects, headers, mimeType, oauthInfo, oauthSecret, oauthToken, parameters, password, scheme, timeout, url, username, virtualHost
Modifier | Constructor and Description |
---|---|
protected |
WSAsyncRequest(java.lang.String url,
java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
protected void |
addQueryString(com.ning.http.client.AsyncHttpClient.BoundRequestBuilder requestBuilder)
Adds the queryString-part of the url to the BoundRequestBuilder
|
WS.HttpResponse |
delete()
Execute a DELETE request.
|
F.Promise<WS.HttpResponse> |
deleteAsync()
Execute a DELETE request asynchronously.
|
WS.HttpResponse |
get()
Execute a GET request synchronously.
|
F.Promise<WS.HttpResponse> |
getAsync()
Execute a GET request asynchronously.
|
protected java.lang.String |
getUrlWithoutQueryString()
Returns the URL but removed the queryString-part of it The QueryString-info is later added with
addQueryString()
|
WS.HttpResponse |
head()
Execute a HEAD request.
|
F.Promise<WS.HttpResponse> |
headAsync()
Execute a HEAD request asynchronously.
|
WS.HttpResponse |
options()
Execute a OPTIONS request.
|
F.Promise<WS.HttpResponse> |
optionsAsync()
Execute a OPTIONS request asynchronously.
|
WS.HttpResponse |
patch()
Execute a PATCH request.
|
F.Promise<WS.HttpResponse> |
patchAsync()
Execute a PATCH request asynchronously.
|
WS.HttpResponse |
post()
Execute a POST request.
|
F.Promise<WS.HttpResponse> |
postAsync()
Execute a POST request asynchronously.
|
com.ning.http.client.AsyncHttpClient.BoundRequestBuilder |
prepareDelete() |
com.ning.http.client.AsyncHttpClient.BoundRequestBuilder |
prepareGet() |
com.ning.http.client.AsyncHttpClient.BoundRequestBuilder |
prepareHead() |
com.ning.http.client.AsyncHttpClient.BoundRequestBuilder |
prepareOptions() |
com.ning.http.client.AsyncHttpClient.BoundRequestBuilder |
preparePatch() |
com.ning.http.client.AsyncHttpClient.BoundRequestBuilder |
preparePost() |
com.ning.http.client.AsyncHttpClient.BoundRequestBuilder |
preparePut() |
WS.HttpResponse |
put()
Execute a PUT request.
|
F.Promise<WS.HttpResponse> |
putAsync()
Execute a PUT request asynchronously.
|
WS.HttpResponse |
trace()
Execute a TRACE request.
|
F.Promise<WS.HttpResponse> |
traceAsync()
Execute a TRACE request asynchronously.
|
authenticate, authenticate, basicAuthHeader, body, createQueryString, encode, files, files, followRedirects, headers, mimeType, oauth, oauth, params, setHeader, setParameter, setParameter, setParameters, timeout, withVirtualHost
protected WSAsyncRequest(java.lang.String url, java.lang.String encoding)
protected java.lang.String getUrlWithoutQueryString()
protected void addQueryString(com.ning.http.client.AsyncHttpClient.BoundRequestBuilder requestBuilder)
requestBuilder
- : The request buider to add the queryString-partpublic com.ning.http.client.AsyncHttpClient.BoundRequestBuilder prepareGet()
public com.ning.http.client.AsyncHttpClient.BoundRequestBuilder prepareOptions()
public com.ning.http.client.AsyncHttpClient.BoundRequestBuilder prepareHead()
public com.ning.http.client.AsyncHttpClient.BoundRequestBuilder preparePatch()
public com.ning.http.client.AsyncHttpClient.BoundRequestBuilder preparePost()
public com.ning.http.client.AsyncHttpClient.BoundRequestBuilder preparePut()
public com.ning.http.client.AsyncHttpClient.BoundRequestBuilder prepareDelete()
public WS.HttpResponse get()
get
in class WS.WSRequest
public F.Promise<WS.HttpResponse> getAsync()
getAsync
in class WS.WSRequest
public WS.HttpResponse patch()
patch
in class WS.WSRequest
public F.Promise<WS.HttpResponse> patchAsync()
patchAsync
in class WS.WSRequest
public WS.HttpResponse post()
post
in class WS.WSRequest
public F.Promise<WS.HttpResponse> postAsync()
postAsync
in class WS.WSRequest
public WS.HttpResponse put()
put
in class WS.WSRequest
public F.Promise<WS.HttpResponse> putAsync()
putAsync
in class WS.WSRequest
public WS.HttpResponse delete()
delete
in class WS.WSRequest
public F.Promise<WS.HttpResponse> deleteAsync()
deleteAsync
in class WS.WSRequest
public WS.HttpResponse options()
options
in class WS.WSRequest
public F.Promise<WS.HttpResponse> optionsAsync()
optionsAsync
in class WS.WSRequest
public WS.HttpResponse head()
head
in class WS.WSRequest
public F.Promise<WS.HttpResponse> headAsync()
headAsync
in class WS.WSRequest
public WS.HttpResponse trace()
trace
in class WS.WSRequest
public F.Promise<WS.HttpResponse> traceAsync()
traceAsync
in class WS.WSRequest
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly