| Package | Description |
|---|---|
| net.gdface.utils |
| Modifier and Type | Method and Description |
|---|---|
static NetworkUtil.ConnectStatus |
NetworkUtil.testHttpConnect(java.lang.String host,
int port,
com.google.common.base.Predicate<java.lang.String> responseValidator)
测试http连接是否可连接
|
static NetworkUtil.ConnectStatus |
NetworkUtil.testHttpConnect(java.lang.String url,
com.google.common.base.Predicate<java.lang.String> responseValidator)
测试http连接是否可连接
|
static NetworkUtil.ConnectStatus |
NetworkUtil.testHttpConnect(java.net.URL url,
com.google.common.base.Predicate<java.lang.String> responseValidator)
测试http连接是否可连接
连接失败返回 FAIL,
建立连接后用
responseValidator验证响应数据,responseValidator返回true则连接有效返回CONNECTABLE,
responseValidator返回false则连接无效返回INVALID_RESPONE , |
static NetworkUtil.ConnectStatus |
NetworkUtil.ConnectStatus.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NetworkUtil.ConnectStatus[] |
NetworkUtil.ConnectStatus.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2019. All rights reserved.