public class DefaultNetworkProvider extends Object implements NetworkProvider
| Constructor and Description |
|---|
DefaultNetworkProvider() |
| Modifier and Type | Method and Description |
|---|---|
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 in interface Providername - the property namedefaultValue - the default value when name is not found or any error occurredpublic void initialize()
Providerinitialize in interface Providerpublic String getHostAddress()
getHostAddress in interface NetworkProviderpublic String getHostName()
getHostName in interface NetworkProviderCopyright © 2018 Ctrip, Inc.. All rights reserved.