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 |
param(String name,
String value) |
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 String asString() throws IOException
IOExceptionpublic int asStatus()
throws IOException
IOExceptionCopyright © 2015 JBoss by Red Hat. All rights reserved.