play.libs.ws
Class WSAsync.WSAsyncRequest

java.lang.Object
  extended by play.libs.WS.WSRequest
      extended by play.libs.ws.WSAsync.WSAsyncRequest
Enclosing class:
WSAsync

public class WSAsync.WSAsyncRequest
extends WS.WSRequest


Field Summary
protected  java.lang.String type
           
 
Fields inherited from class play.libs.WS.WSRequest
body, fileParams, headers, mimeType, oauthInfo, oauthTokens, parameters, password, timeout, url, username
 
Constructor Summary
protected WSAsync.WSAsyncRequest(java.lang.String url)
           
 
Method Summary
 WS.HttpResponse delete()
          Execute a DELETE request.
 java.util.concurrent.Future<WS.HttpResponse> deleteAsync()
          Execute a DELETE request asynchronously.
 WS.HttpResponse get()
          Execute a GET request synchronously.
 java.util.concurrent.Future<WS.HttpResponse> getAsync()
          Execute a GET request asynchronously.
 WS.HttpResponse head()
          Execute a HEAD request.
 java.util.concurrent.Future<WS.HttpResponse> headAsync()
          Execute a HEAD request asynchronously.
 WS.HttpResponse options()
          Execute a OPTIONS request.
 java.util.concurrent.Future<WS.HttpResponse> optionsAsync()
          Execute a OPTIONS request asynchronously.
 WS.HttpResponse post()
          Execute a POST request.
 java.util.concurrent.Future<WS.HttpResponse> postAsync()
          Execute a POST request asynchronously.
 WS.HttpResponse put()
          Execute a PUT request.
 java.util.concurrent.Future<WS.HttpResponse> putAsync()
          Execute a PUT request asynchronously.
 WS.HttpResponse trace()
          Execute a TRACE request.
 java.util.concurrent.Future<WS.HttpResponse> traceAsync()
          Execute a TRACE request asynchronously.
 
Methods inherited from class play.libs.WS.WSRequest
authenticate, body, createQueryString, files, files, headers, mimeType, oauth, params, setHeader, setParameter, setParameter, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected java.lang.String type
Constructor Detail

WSAsync.WSAsyncRequest

protected WSAsync.WSAsyncRequest(java.lang.String url)
Method Detail

get

public WS.HttpResponse get()
Execute a GET request synchronously.

Specified by:
get in class WS.WSRequest

getAsync

public java.util.concurrent.Future<WS.HttpResponse> getAsync()
Execute a GET request asynchronously.

Overrides:
getAsync in class WS.WSRequest

post

public WS.HttpResponse post()
Execute a POST request.

Specified by:
post in class WS.WSRequest

postAsync

public java.util.concurrent.Future<WS.HttpResponse> postAsync()
Execute a POST request asynchronously.

Overrides:
postAsync in class WS.WSRequest

put

public WS.HttpResponse put()
Execute a PUT request.

Specified by:
put in class WS.WSRequest

putAsync

public java.util.concurrent.Future<WS.HttpResponse> putAsync()
Execute a PUT request asynchronously.

Overrides:
putAsync in class WS.WSRequest

delete

public WS.HttpResponse delete()
Execute a DELETE request.

Specified by:
delete in class WS.WSRequest

deleteAsync

public java.util.concurrent.Future<WS.HttpResponse> deleteAsync()
Execute a DELETE request asynchronously.

Overrides:
deleteAsync in class WS.WSRequest

options

public WS.HttpResponse options()
Execute a OPTIONS request.

Specified by:
options in class WS.WSRequest

optionsAsync

public java.util.concurrent.Future<WS.HttpResponse> optionsAsync()
Execute a OPTIONS request asynchronously.

Overrides:
optionsAsync in class WS.WSRequest

head

public WS.HttpResponse head()
Execute a HEAD request.

Specified by:
head in class WS.WSRequest

headAsync

public java.util.concurrent.Future<WS.HttpResponse> headAsync()
Execute a HEAD request asynchronously.

Overrides:
headAsync in class WS.WSRequest

trace

public WS.HttpResponse trace()
Execute a TRACE request.

Specified by:
trace in class WS.WSRequest

traceAsync

public java.util.concurrent.Future<WS.HttpResponse> traceAsync()
Execute a TRACE request asynchronously.

Overrides:
traceAsync in class WS.WSRequest


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