public class HttpClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CHARSET |
| Constructor and Description |
|---|
HttpClient()
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
connect
|
void |
disconnect()
close the http client
|
String |
get(String url)
http getOrigin
|
String |
post(String url,
Map<String,String> params)
http post
|
public static final String DEFAULT_CHARSET
public void connect()
public String get(String url) throws Exception
url - Exceptionpublic String post(String url, Map<String,String> params) throws Exception
url - Exceptionpublic void disconnect()
Copyright © 2016. All rights reserved.