org.dvb.net.rc
Class ConnectionParameters

java.lang.Object
  extended by org.dvb.net.rc.ConnectionParameters

public class ConnectionParameters
extends java.lang.Object

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

ConnectionParameters

public ConnectionParameters(java.lang.String number,
                            java.lang.String username,
                            java.lang.String password)
Construct a set of connection parameters. Details of the DNS server to use are supplied by the server.

Parameters:
number - the target of the connection, e.g. a phone number
username - the username to use in connection setup
password - the password to use in connection setup

ConnectionParameters

public ConnectionParameters(java.lang.String number,
                            java.lang.String username,
                            java.lang.String password,
                            java.net.InetAddress[] dns)
Construct a set of connection parameters.

Parameters:
number - the target of the connection, e.g. a phone number
username - the username to use in connection setup
password - the password to use in connection setup
dns - 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

getTarget

public java.lang.String getTarget()
Return the target of this connection for example a phone number. The value returned shall be the one passed into the constructor of this instance.

Returns:
the target of the connection

getUsername

public 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.

Returns:
the username used in establishing the connection

getPassword

public 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.

Returns:
the password used in establishing this connection

getDNSServer

public java.net.InetAddress[] getDNSServer()
Return the addresses of the DNS servers to use for the connection

Returns:
return the addresses of the DNS servers passed into the constructor of the instance or null if none was provided.