| 程序包 | 说明 |
|---|---|
| com.nbsaas.http | |
| com.nbsaas.lbs.amap.v3.service.impl | |
| com.nbsaas.lbs.baidu.v3.service | |
| com.nbsaas.lbs.qq.v1.service |
| 限定符和类型 | 类和说明 |
|---|---|
class |
HttpConnection
Implementation of
Connection. |
| 限定符和类型 | 方法和说明 |
|---|---|
static Connection |
HttpConnection.connect(String url) |
static Connection |
HttpConnection.connect(URL url) |
Connection |
HttpConnection.cookie(String name,
String value) |
Connection |
Connection.cookie(String name,
String value)
Set a cookie to be sent in the request
|
Connection |
HttpConnection.data(Map<String,String> data) |
Connection |
Connection.data(Map<String,String> data)
Adds all of the supplied data to the request data parameters
|
Connection |
HttpConnection.data(String... keyvals) |
Connection |
Connection.data(String... keyvals)
Add a number of request data parameters.
|
Connection |
HttpConnection.data(String key,
String value) |
Connection |
Connection.data(String key,
String value)
Add a request data parameter.
|
Connection |
HttpConnection.followRedirects(boolean followRedirects) |
Connection |
Connection.followRedirects(boolean followRedirects)
Configures the connection to (not) follow server redirects.
|
Connection |
HttpConnection.header(String name,
String value) |
Connection |
Connection.header(String name,
String value)
Set a request header.
|
Connection |
HttpConnection.method(Connection.Method method) |
Connection |
Connection.method(Connection.Method method)
Set the request method to use, GET or POST.
|
Connection |
HttpConnection.referrer(String referrer) |
Connection |
Connection.referrer(String referrer)
Set the request referrer (aka "referer") header.
|
Connection |
HttpConnection.request(Connection.Request request) |
Connection |
Connection.request(Connection.Request request)
Set the connection's request
|
Connection |
HttpConnection.response(Connection.Response response) |
Connection |
Connection.response(Connection.Response response)
Set the conenction's response
|
Connection |
HttpConnection.timeout(int millis) |
Connection |
Connection.timeout(int millis)
Set the request timeouts (connect and read).
|
Connection |
HttpConnection.url(String url) |
Connection |
Connection.url(String url)
Set the request URL to fetch.
|
Connection |
HttpConnection.url(URL url) |
Connection |
Connection.url(URL url)
Set the request URL to fetch.
|
Connection |
HttpConnection.userAgent(String userAgent) |
Connection |
Connection.userAgent(String userAgent)
Set the request user-agent header.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Connection |
DistrictServiceImpl.getConnection(String url) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Connection |
BaseService.getConnection(String url) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
BaseService.buildParams(Connection connection,
Map<String,String> maps) |
String |
BaseService.execute(Connection connection) |
<T> T |
BaseService.execute(Connection connection,
Class<T> tClass) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Connection |
PlaceService.getConnection(String url) |
Copyright © 2021. All rights reserved.