|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.net.modem.ModemConfig
public class ModemConfig
Modem configuration representation
Nested Class Summary | |
---|---|
static class |
ModemConfig.AuthType
|
static class |
ModemConfig.PdpType
Configuration for a cellular modem. |
Constructor Summary | |
---|---|
ModemConfig()
Empty constructor |
|
ModemConfig(int profileID,
ModemConfig.PdpType pdpType,
String apn,
IPAddress ipAddress,
int dataCompression,
int headerCompresion)
PDP config constructor |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getApn()
Reports access point name. |
ModemConfig.AuthType |
getAuthType()
Reports authentication type. |
int |
getDataCompression()
Reports a value of numeric parameter that supports PDP data compression. |
String |
getDialString()
Gets the dial string. |
int |
getHeaderCompression()
Reports a value of numeric parameter that supports PDP header compression. |
IPAddress |
getIpAddress()
Reports PDP IP address. |
int |
getLcpEchoFailure()
Reports number of failed LCP echo requests |
int |
getLcpEchoInterval()
Reports LCP echo interval |
String |
getPassword()
Reports password. |
ModemConfig.PdpType |
getPdpType()
Reports PDP type. |
int |
getPppNumber()
Reports PPP number (i.e. |
int |
getProfileID()
Reports PDP profile ID. |
String |
getUsername()
Reports user name. |
int |
hashCode()
|
boolean |
isDataCompression()
Reports if PDP data compression is enabled. |
boolean |
isEnabled()
Reports whether it is enabled. |
boolean |
isHeaderCompression()
Reports if PDP header compression is enabled. |
boolean |
isValid()
Checks whether or not this configuration is valid. |
void |
setApn(String apn)
Sets access point name. |
void |
setAuthType(ModemConfig.AuthType authType)
Sets authentication type. |
void |
setDataCompression(int dataCompression)
Sets a value of numeric parameter that supports PDP data compression. |
void |
setDialString(String dialString)
Sets the dial string. |
void |
setEnabled(boolean enabled)
Sets the enabled setting. |
void |
setHeaderCompression(int headerCompression)
Sets a value of numeric parameter that supports PDP header compression. |
void |
setIpAddress(IPAddress address)
Sets PDP IP address. |
void |
setLcpEchoFailure(int lcpEchoFailure)
Sets number of failed LCP echo requests (unacknowledged LCP echo requests to be sent for pppd to presume the peer to be dead) |
void |
setLcpEchoInterval(int lcpEchoInterval)
Sets LCP echo interval |
void |
setPassword(String password)
Sets password. |
void |
setPdpType(ModemConfig.PdpType pdpType)
Sets PDP type. |
void |
setPppNumber(int pppNumber)
Sets PPP number (i.e. |
void |
setProfileID(int id)
Sets PDP profile ID. |
void |
setUsername(String username)
Sets user name. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModemConfig()
public ModemConfig(int profileID, ModemConfig.PdpType pdpType, String apn, IPAddress ipAddress, int dataCompression, int headerCompresion)
apn
- - access point name as String
ipAddress
- - IP address as String
profileID
- - PDP profile ID as int
pdpType
- - PDP type as PDP_Type
dataCompression
- - PDP data compression as int
headerCompresion
- - PDP header compression as int
Method Detail |
---|
public boolean isEnabled()
boolean
public void setEnabled(boolean enabled)
enabled
- - enabled status as boolean
public String getDialString()
String
public void setDialString(String dialString)
dialString
- - dial string as String
public ModemConfig.AuthType getAuthType()
ModemConfig.AuthType
public void setAuthType(ModemConfig.AuthType authType)
authType
- - authentication type as ModemConfig.AuthType
public String getUsername()
String
public void setUsername(String username)
username
- - user name as String
public String getPassword()
String
public void setPassword(String password)
password
- - password as String
public int getLcpEchoInterval()
int
public void setLcpEchoInterval(int lcpEchoInterval)
lcpEchoInterval
- - LCP Echo interval as int
public int getLcpEchoFailure()
int
public void setLcpEchoFailure(int lcpEchoFailure)
lcpEchoFailure
- public int getPppNumber()
int
public void setPppNumber(int pppNumber)
pppNumber
- - PPP number as int
public int getProfileID()
int
public void setProfileID(int id)
id
- - PDP profile ID as int
public ModemConfig.PdpType getPdpType()
PDP_Type
public void setPdpType(ModemConfig.PdpType pdpType)
pdpType
- - PDP type as PDP_Type
public String getApn()
String
public void setApn(String apn)
apn
- - access point name as String
public IPAddress getIpAddress()
IPAddress
public void setIpAddress(IPAddress address)
ip
- - IP address as IPAddress
public int getDataCompression()
int
public void setDataCompression(int dataCompression)
dataCompression
- - PDP data compression as int
public int getHeaderCompression()
int
public void setHeaderCompression(int headerCompression)
-
- headerCompression PDP header compression as int
public boolean isDataCompression()
boolean
public boolean isHeaderCompression()
boolean
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public boolean isValid()
NetConfig
isValid
in interface NetConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |