com.esf.device.modem.configuration
Class ModemConfiguration

java.lang.Object
  extended by com.esf.device.modem.configuration.ModemConfiguration

public class ModemConfiguration
extends java.lang.Object

Defines modem configuration object that each modem will return in the provideConfiguration() method. This object will be piked up by the CellularConnectionManager.

Author:
ilya.binshtok

Field Summary
static java.lang.String APN
           
static java.lang.String AUTH_TYPE
           
static java.lang.String DIALSTRING
           
static java.lang.String ENABLED
           
static java.lang.String MODEL
           
static java.lang.String NETWORK_TECHNOLOGY
           
static java.lang.String NUMBER_OF_MODEMS
           
static java.lang.String PASSWORD
           
static java.lang.String PERSISTENCE
           
static java.lang.String PPP_UNIT_NUMBER
           
static java.lang.String PRODUCT_ID
           
static java.lang.String SERIAL_NUMBER
           
static java.lang.String SERVICE_PROVIDER
           
static java.lang.String USB_PORT_ADDRESS
           
static java.lang.String USE_DEFAULT_PEER_PARAM
           
static java.lang.String USERNAME
           
static java.lang.String VENDOR_ID
           
 
Constructor Summary
ModemConfiguration()
          ModemConfiguration constructor
ModemConfiguration(java.util.Properties configProps)
          ModemConfiguration constructor
 
Method Summary
 java.lang.String getApn()
          Reports APN
 java.lang.String getAuthenticationType()
          Reports authentication type
 java.util.Properties getConfigProps()
          Reports configuration properties attached
 java.lang.String getDialString()
          Reports dialstring
 java.lang.String getPassword()
          Reports password
 int getPppUnitNumber()
          Reports PPP unit number (e.g.
 java.lang.String getProvider()
          Reports service provider
 java.lang.String getUsername()
          Reports username
 boolean isEnabled()
          Reports if modem is enabled in configuration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENABLED

public static final java.lang.String ENABLED
See Also:
Constant Field Values

NUMBER_OF_MODEMS

public static final java.lang.String NUMBER_OF_MODEMS
See Also:
Constant Field Values

PPP_UNIT_NUMBER

public static final java.lang.String PPP_UNIT_NUMBER
See Also:
Constant Field Values

USB_PORT_ADDRESS

public static final java.lang.String USB_PORT_ADDRESS
See Also:
Constant Field Values

VENDOR_ID

public static final java.lang.String VENDOR_ID
See Also:
Constant Field Values

PRODUCT_ID

public static final java.lang.String PRODUCT_ID
See Also:
Constant Field Values

USE_DEFAULT_PEER_PARAM

public static final java.lang.String USE_DEFAULT_PEER_PARAM
See Also:
Constant Field Values

SERVICE_PROVIDER

public static final java.lang.String SERVICE_PROVIDER
See Also:
Constant Field Values

DIALSTRING

public static final java.lang.String DIALSTRING
See Also:
Constant Field Values

PERSISTENCE

public static final java.lang.String PERSISTENCE
See Also:
Constant Field Values

APN

public static final java.lang.String APN
See Also:
Constant Field Values

AUTH_TYPE

public static final java.lang.String AUTH_TYPE
See Also:
Constant Field Values

USERNAME

public static final java.lang.String USERNAME
See Also:
Constant Field Values

PASSWORD

public static final java.lang.String PASSWORD
See Also:
Constant Field Values

MODEL

public static final java.lang.String MODEL
See Also:
Constant Field Values

SERIAL_NUMBER

public static final java.lang.String SERIAL_NUMBER
See Also:
Constant Field Values

NETWORK_TECHNOLOGY

public static final java.lang.String NETWORK_TECHNOLOGY
See Also:
Constant Field Values
Constructor Detail

ModemConfiguration

public ModemConfiguration()
ModemConfiguration constructor


ModemConfiguration

public ModemConfiguration(java.util.Properties configProps)
ModemConfiguration constructor

Parameters:
configProps - - configuration properties as Properties
Method Detail

getConfigProps

public java.util.Properties getConfigProps()
Reports configuration properties attached

Returns:
configuration properties as Properties

isEnabled

public boolean isEnabled()
Reports if modem is enabled in configuration

Returns:
boolean
true - modem is enables
false - modem is disabled

getPppUnitNumber

public int getPppUnitNumber()
Reports PPP unit number (e.g. number of ppp interface)

Returns:
PPP unit number as int

getProvider

public java.lang.String getProvider()
Reports service provider

Returns:
service provider as String

getDialString

public java.lang.String getDialString()
Reports dialstring

Returns:
dialstring as String

getApn

public java.lang.String getApn()
Reports APN

Returns:
APN as String

getAuthenticationType

public java.lang.String getAuthenticationType()
Reports authentication type

Returns:
authentication type as String

getUsername

public java.lang.String getUsername()
Reports username

Returns:
username as String

getPassword

public java.lang.String getPassword()
Reports password

Returns:
password as String