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 ADD_DEFAULT_ROUTE
           
static java.lang.String ALLOW_BSD_COMP
           
static java.lang.String ALLOW_DEFLATE_COMP
           
static java.lang.String ALLOW_MAGIC
           
static java.lang.String ALLOW_PROXY_ARPS
           
static java.lang.String ALLOW_VJ_CONNID_COMP
           
static java.lang.String ALLOW_VJ_TCPIP_HDR_COMP
           
static java.lang.String APN
           
static java.lang.String AUTH_TYPE
           
static java.lang.String BAUDRATE
           
static java.lang.String CONNECT_DELAY
           
static java.lang.String DEBUG_ENABLE
           
static java.lang.String DIALSTRING
           
static java.lang.String ENABLED
           
static java.lang.String IPCP_ACCEPT_LOCAL
           
static java.lang.String IPCP_ACCEPT_REMOTE
           
static java.lang.String LCP_ECHO_FAILURE
           
static java.lang.String LCP_ECHO_INTERVAL
           
static java.lang.String LOCK_SERIAL_DEVICE
           
static java.lang.String LOGFILE
           
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 PEER_MUST_AUTHENTICATE_ITSELF
           
static java.lang.String PEER_SUPPLIES_LOCAL_IP
           
static java.lang.String PERSISTENCE
           
static java.lang.String PPP_UNIT_NUMBER
           
static java.lang.String PRODUCT_ID
           
static java.lang.String SERIAL_MODEM_TYPE
           
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 USE_MODEM_CTRL_LINES
           
static java.lang.String USE_PEER_DNS
           
static java.lang.String USE_RTS_CTS_FLOWCTRL
           
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

SERIAL_MODEM_TYPE

public static final java.lang.String SERIAL_MODEM_TYPE
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

LOGFILE

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

BAUDRATE

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

DEBUG_ENABLE

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

USE_RTS_CTS_FLOWCTRL

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

LOCK_SERIAL_DEVICE

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

PEER_MUST_AUTHENTICATE_ITSELF

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

ADD_DEFAULT_ROUTE

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

USE_PEER_DNS

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

ALLOW_PROXY_ARPS

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

ALLOW_VJ_TCPIP_HDR_COMP

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

ALLOW_VJ_CONNID_COMP

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

ALLOW_BSD_COMP

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

ALLOW_DEFLATE_COMP

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

ALLOW_MAGIC

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

CONNECT_DELAY

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

LCP_ECHO_FAILURE

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

LCP_ECHO_INTERVAL

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

USE_MODEM_CTRL_LINES

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

PEER_SUPPLIES_LOCAL_IP

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

IPCP_ACCEPT_LOCAL

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

IPCP_ACCEPT_REMOTE

public static final java.lang.String IPCP_ACCEPT_REMOTE
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