public class DefaultNetworkProvider extends Object implements NetworkProvider
| 构造器和说明 |
|---|
DefaultNetworkProvider() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getHostAddress() |
String |
getHostName() |
String |
getProperty(String name,
String defaultValue)
Return the property value with the given name, or
defaultValue if the name doesn't exist. |
Class<? extends Provider> |
getType() |
void |
initialize()
Initialize the provider
|
String |
toString() |
public String getProperty(String name, String defaultValue)
ProviderdefaultValue if the name doesn't exist.getProperty 在接口中 Providername - the property namedefaultValue - the default value when name is not found or any error occurredpublic void initialize()
Providerinitialize 在接口中 Providerpublic String getHostAddress()
getHostAddress 在接口中 NetworkProviderpublic String getHostName()
getHostName 在接口中 NetworkProviderCopyright © 2019 Ctrip, Inc.. All rights reserved.