Constructor and Description |
---|
Client.RequestHolder(String url) |
public Client.RequestHolder(String url)
public Client.RequestHolder setHeader(String name, String value)
name
- header name to setvalue
- header value to setRequestHolder
instancepublic Client.RequestHolder setQueryParameter(String name, String value)
name
- parameter name to setvalue
- parameter value to setRequestHolder
instancepublic Client.RequestHolder setBodyEncoding(String charset)
public Client.RequestHolder addCookie(com.ning.http.client.cookie.Cookie cookie)
cookie
- cookie object to addRequestHolder
instancepublic Response get()
public Response jsonGet()
public Response xmlGet()
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–2014. All rights reserved.