Constructor and Description |
---|
Client.RequestHolder(String url) |
Modifier and Type | Method and Description |
---|---|
Client.RequestHolder |
addCookie(com.ning.http.client.Cookie cookie)
Adds a cookie
|
Future<Response> |
asyncDelete()
Perform a DELETE on the request asynchronously.
|
Future<Response> |
asyncGet()
Perform a GET request asynchronously.
|
Future<Response> |
asyncGetJson() |
Future<Response> |
asyncGetXml() |
Future<Response> |
asyncHead()
Perform a HEAD on the request asynchronously.
|
Future<Response> |
asyncJsonPost(Object o) |
Future<Response> |
asyncJsonPut(Object o) |
Future<Response> |
asyncOption()
Perform a OPTION on the request asynchronously.
|
Future<Response> |
asyncPost() |
Future<Response> |
asyncPost(File body) |
Future<Response> |
asyncPost(InputStream body) |
Future<Response> |
asyncPost(String body)
Perform a POST request asynchronously.
|
Future<Response> |
asyncPut(File body) |
Future<Response> |
asyncPut(InputStream body) |
Future<Response> |
asyncPut(String body)
Perform a PUT request asynchronously.
|
Future<Response> |
asyncXmlPost(Object o) |
Future<Response> |
asyncXmlPut(Object o) |
Response |
delete() |
Response |
get()
Perform a GET request synchronously.
|
Response |
getJson() |
Response |
getXml() |
Response |
head() |
Response |
jsonPost(Object o) |
Response |
jsonPut(Object o) |
Response |
option() |
Response |
post() |
Response |
post(File body) |
Response |
post(InputStream body) |
Response |
post(String body)
Perform a POST request synchronously.
|
Response |
put(File body) |
Response |
put(InputStream body) |
Response |
put(String body)
Perform a PUT request synchronously.
|
Client.RequestHolder |
setHeader(String name,
String value)
Sets a header with the given name, this can be called repeatedly
|
Client.RequestHolder |
setQueryParameter(String name,
String value)
Sets a query parameter with the given name,this can be called
repeatedly
|
Response |
xmlPost(Object o) |
Response |
xmlPut(Object o) |
public Client.RequestHolder(String url)
public Client.RequestHolder setHeader(String name, String value)
name
- value
- public Client.RequestHolder setQueryParameter(String name, String value)
name
- value
- public Client.RequestHolder addCookie(com.ning.http.client.Cookie cookie)
cookie
- public Response get()
public Response getJson()
public Response getXml()
public Future<Response> asyncPost(String body)
body
- represented as Stringpublic Future<Response> asyncPost(InputStream body)
public Response post(String body)
body
- represented as Stringpublic Response post()
public Response post(InputStream body)
public Future<Response> asyncPut(String body)
body
- represented as Stringpublic Future<Response> asyncPut(InputStream body)
public Response put(String body)
body
- represented as Stringpublic Response put(InputStream body)
public Response delete()
public Response head()
public Response option()
Copyright © 2009-2012. All Rights Reserved.