public class HttpConnection extends Object
Constructor and Description |
---|
HttpConnection(int method,
String URL) |
HttpConnection(int method,
String URL,
int connectionTimeOut) |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String key,
String value) |
void |
addParameter(String key,
String value) |
static String |
encode(String URL) |
int |
execute() |
void |
finalize() |
String |
getResponse() |
HashMap |
getResponseHeaders() |
void |
setRequestBody(String body)
Set the request Body.
|
void |
setRequestBody(String body,
String contentType,
String charSet) |
public void setRequestBody(String body) throws Exception
body
- Exception
public void setRequestBody(String body, String contentType, String charSet) throws Exception
Exception
public HashMap getResponseHeaders()