public class ConnectionParameters extends Object
| Constructor and Description |
|---|
ConnectionParameters(String number,
String username,
String password)
Construct a set of connection parameters.
|
ConnectionParameters(String number,
String username,
String password,
InetAddress[] dns)
Construct a set of connection parameters.
|
| Modifier and Type | Method and Description |
|---|---|
InetAddress[] |
getDNSServer()
Return the addresses of the DNS servers to use for the connection
|
String |
getPassword()
Return the password used in establishing this connection
The value returned shall be the one passed into the constructor of this instance.
|
String |
getTarget()
Return the target of this connection for example a phone number.
|
String |
getUsername()
Return the username used in establishing this connection
The value returned shall be the one passed into the constructor of this instance.
|
public ConnectionParameters(String number, String username, String password)
number - the target of the connection, e.g. a phone numberusername - the username to use in connection setuppassword - the password to use in connection setuppublic ConnectionParameters(String number, String username, String password, InetAddress[] dns)
number - the target of the connection, e.g. a phone numberusername - the username to use in connection setuppassword - the password to use in connection setupdns - the list of DNS servers to try before reporting failure. The order in
which they are interrogated is not specified. Once one result has been obtained,
there is no requirement to try others.public String getTarget()
public String getUsername()
public String getPassword()
public InetAddress[] getDNSServer()
Copyright © 2012 code4tv.com. All Rights Reserved.