Package cz.xtf.client
Class Http
- java.lang.Object
-
- cz.xtf.client.Http
-
public class Http extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpbasicAuth(String username, String password)HttpbearerAuth(String token)Httpcookie(String name, String value)Httpcookie(String domain, String name, String value)Httpdata(String data, org.apache.http.entity.ContentType contentType)static Httpdelete(String url)HttpdisableRedirect()HttpResponseParserexecute()static Httpget(String url)Httpheader(String name, String value)static Httppost(String url)HttppreemptiveAuth()static Httpput(String url)HttptrustAll()HttptrustStore(Path trustStorePath, String trustStorePassword)HttptrustStore(Path trustStorePath, String trustStorePassword, HostnameVerifier verifier)HttpWaiterswaiters()
-
-
-
Method Detail
-
get
public static Http get(String url) throws MalformedURLException
- Throws:
MalformedURLException
-
post
public static Http post(String url) throws MalformedURLException
- Throws:
MalformedURLException
-
put
public static Http put(String url) throws MalformedURLException
- Throws:
MalformedURLException
-
delete
public static Http delete(String url) throws MalformedURLException
- Throws:
MalformedURLException
-
preemptiveAuth
public Http preemptiveAuth()
-
disableRedirect
public Http disableRedirect()
-
trustAll
public Http trustAll()
-
trustStore
public Http trustStore(Path trustStorePath, String trustStorePassword, HostnameVerifier verifier)
-
execute
public HttpResponseParser execute() throws IOException
- Throws:
IOException
-
waiters
public HttpWaiters waiters()
-
-