public class SimpleHttp extends Object
Modifier | Constructor and Description |
---|---|
protected |
SimpleHttp(String url,
String method) |
Modifier and Type | Method and Description |
---|---|
int |
asStatus() |
String |
asString() |
static SimpleHttp |
doGet(String url) |
static SimpleHttp |
doPost(String url) |
SimpleHttp |
header(String name,
String value) |
SimpleHttp |
hostnameVerifier(HostnameVerifier verifier) |
SimpleHttp |
param(String name,
String value) |
SimpleHttp |
sslFactory(SSLSocketFactory factory) |
public static SimpleHttp doGet(String url)
public static SimpleHttp doPost(String url)
public SimpleHttp header(String name, String value)
public SimpleHttp param(String name, String value)
public SimpleHttp sslFactory(SSLSocketFactory factory)
public SimpleHttp hostnameVerifier(HostnameVerifier verifier)
public String asString() throws IOException
IOException
public int asStatus() throws IOException
IOException
Copyright © 2016 JBoss by Red Hat. All rights reserved.