|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dvb.net.rc.ConnectionParameters
public class ConnectionParameters
This class encapsulates the parameters needed to specify the target of a connection.
Constructor Summary | |
---|---|
ConnectionParameters(java.lang.String number,
java.lang.String username,
java.lang.String password)
Construct a set of connection parameters. |
|
ConnectionParameters(java.lang.String number,
java.lang.String username,
java.lang.String password,
java.net.InetAddress[] dns)
Construct a set of connection parameters. |
Method Summary | |
---|---|
java.net.InetAddress[] |
getDNSServer()
Return the addresses of the DNS servers to use for the connection |
java.lang.String |
getPassword()
Return the password used in establishing this connection The value returned shall be the one passed into the constructor of this instance. |
java.lang.String |
getTarget()
Return the target of this connection for example a phone number. |
java.lang.String |
getUsername()
Return the username used in establishing this connection The value returned shall be the one passed into the constructor of this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionParameters(java.lang.String number, java.lang.String username, java.lang.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(java.lang.String number, java.lang.String username, java.lang.String password, java.net.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.Method Detail |
---|
public java.lang.String getTarget()
public java.lang.String getUsername()
public java.lang.String getPassword()
public java.net.InetAddress[] getDNSServer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |