|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.net.admin.modem.PppPeer
public class PppPeer
Defines settings per service provider
Constructor Summary | |
---|---|
PppPeer()
|
Method Summary | |
---|---|
String |
getApn()
Reports APN (Access Point Name) of cellular data connection. |
ModemConfig.AuthType |
getAuthType()
Reports authentication type. |
int |
getBaudRate()
Reports baud rate used for PPP |
int |
getConnect_delay()
Reports connect delay in milliseconds |
String |
getConnectScript()
Reports connect script |
String |
getDialString()
Reports dial string |
String |
getDisconnectScript()
Reports disconnect script |
int |
getLcp_echo_failure()
Reports number 'lcp-echo-failure' parameter that is number of unanswered LCP echo requests to presume the peer to be dead. |
int |
getLcp_echo_interval()
Reports LCP echo interval in seconds |
String |
getLogfile()
Reports name of the log file |
ModemTechnologyType |
getNetworkTechnology()
Reports network technology. |
String |
getPassword()
Reports password for authentication |
int |
getPppUnitNumber()
Reports PPP unit number |
String |
getProvider()
Reports service provider |
String |
getUsername()
Reports user name for authentication |
boolean |
isAddDefaultRoute()
Reports 'defaultroute' option |
boolean |
isAllowBsdCompression()
Reports if BSD compression is allowed |
boolean |
isAllowDeflateCompression()
Reports if 'Deflate' compression is allowed |
boolean |
isAllowMagic()
Reports is magic number negotiation is enabled |
boolean |
isAllowProxyArps()
Reports if 'proxyarp' option is enabled |
boolean |
isAllowVanJacobsonConnectionIDCompression()
Reports if Van Jacobson Connection ID compression is allowed |
boolean |
isAllowVanJacobsonTcpIpHdrCompression()
Reports if Van Jacobson TCP/IP header compression is allowed |
boolean |
isEnabled()
Reports if PPP is enabled in configuration |
boolean |
isEnableDebug()
Reports if connection debugging is enabled |
boolean |
isLockSerialDevice()
Reports if PPP daemon is setup to create a lock file |
boolean |
isPeerMustAuthenticateItself()
Reports if peer is expected to authenticate itself |
boolean |
isPeerToSupplyLocalIP()
Reports if peer is expected to supply local IP address using IPCP negotiation. |
boolean |
isUseModemControlLines()
Reports if modem control lines are to be used. |
boolean |
isUsePeerDns()
Reports if peer supplied DNS should be used |
boolean |
isUseRtsCtsFlowControl()
Reports if RTS/CTS hardware flow control is to be used |
void |
setAddDefaultRoute(boolean addDefaultRoute)
Sets 'defaultroute' option |
void |
setAllowBsdCompression(boolean allowBsdCompression)
Enable/disable BSD compression |
void |
setAllowDeflateCompression(boolean allowDeflateCompression)
Enable/disable 'Deflate' compression |
void |
setAllowMagic(boolean allowMagic)
Enable/disable magic number negotiation |
void |
setAllowProxyArps(boolean allowProxyArps)
Enable/disable 'proxyarp' option |
void |
setAllowVanJacobsonConnectionIDCompression(boolean allowVanJacobsonConnectionIDCompression)
Enable/disable Van Jacobson Connection ID compression |
void |
setAllowVanJacobsonTcpIpHdrCompression(boolean allowVanJacobsonTcpIpHdrCompression)
Enable/disable Van Jacobson TCP/IP header compression |
void |
setApn(String apn)
Sets APN (Access Point Name) for cellular data connection. |
void |
setAuthType(ModemConfig.AuthType authType)
Sets authentication type |
void |
setBaudRate(int baudRate)
Sets baud rate used for PPP |
void |
setConnect_delay(int connect_delay)
Sets connect delay |
void |
setConnectScript(String connectScript)
Sets connect script filename |
void |
setDialString(String dialString)
Sets dial string |
void |
setDisconnectScript(String disconnectScript)
Sets disconnect script filename |
void |
setEnabled(boolean enabled)
Enables/disables PPP |
void |
setEnableDebug(boolean enableDebug)
Sets 'enable connection debugging' flag |
void |
setLcp_echo_failure(int lcp_echo_failure)
Sets 'lcp-echo-faillure' parameter |
void |
setLcp_echo_interval(int lcp_echo_interval)
Sets LCP echo interval |
void |
setLockSerialDevice(boolean lockSerialDevice)
Enable/disable lock file |
void |
setLogfile(String logfile)
Sets the name of the log file |
void |
setNetworkTechnology(ModemTechnologyType networkTechnology)
Sets network technology |
void |
setPassword(String password)
Sets password used for authentication |
void |
setPeerMustAuthenticateItself(boolean peerMustAuthenticateItself)
Sets 'peer must authenticate itself' flag |
void |
setPeerToSupplyLocalIP(boolean peerToSupplyLocalIP)
Sets whether peer is to supply local IP address or not |
void |
setPppUnitNumber(int pppUnitNumber)
Sets PPP unit number |
void |
setProvider(String provider)
Sets service provider |
void |
setUseModemControlLines(boolean useModemControlLines)
Sets 'use modem control lines' flag |
void |
setUsePeerDns(boolean usePeerDns)
Sets whether to use peer supplied DNS. |
void |
setUsername(String username)
Sets user name used for authentication |
void |
setUseRtsCtsFlowControl(boolean useRtsCtsFlowControl)
Enable/disable RTS/CTS flow control |
void |
write(String filename)
Write the current parameters to the specified peer file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PppPeer()
Method Detail |
---|
public int getPppUnitNumber()
int
public void setPppUnitNumber(int pppUnitNumber)
pppUnitNumber
- as int
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- public String getProvider()
public void setProvider(String provider)
provider
- as Stringpublic ModemTechnologyType getNetworkTechnology()
public void setNetworkTechnology(ModemTechnologyType networkTechnology)
networkTechnology
- as ModemServiceTypepublic String getApn()
public void setApn(String apn)
apn
- as Stringpublic String getDialString()
public void setDialString(String dialString)
dialString
- such as "atdt555-1212"public ModemConfig.AuthType getAuthType()
public void setAuthType(ModemConfig.AuthType authType)
authType
- int (NONE, PAP, CHAP) as defined in com.esf.net.ppp.service.PppAuthentication
public String getUsername()
public void setUsername(String username)
username
- as Stringpublic String getPassword()
public void setPassword(String password)
password
- as Stringpublic int getBaudRate()
public void setBaudRate(int baudRate)
baudRate
- on serial port, as intpublic String getLogfile()
public void setLogfile(String logfile)
logfile
- as Stringpublic String getConnectScript()
public void setConnectScript(String connectScript)
connectScript
- as String
public String getDisconnectScript()
public void setDisconnectScript(String disconnectScript)
disconnectScript
- as String
public boolean isAddDefaultRoute()
public void setAddDefaultRoute(boolean addDefaultRoute)
addDefaultRoute
- public boolean isPeerToSupplyLocalIP()
public void setPeerToSupplyLocalIP(boolean peerToSupplyLocalIP)
peerToSupplyLocalIP
- public boolean isUsePeerDns()
public void setUsePeerDns(boolean usePeerDns)
usePeerDns
- public boolean isAllowProxyArps()
public void setAllowProxyArps(boolean allowProxyArps)
allowProxyArps
- public boolean isAllowVanJacobsonTcpIpHdrCompression()
public void setAllowVanJacobsonTcpIpHdrCompression(boolean allowVanJacobsonTcpIpHdrCompression)
allowVanJacobsonTcpIpHdrCompression
- public boolean isAllowVanJacobsonConnectionIDCompression()
public void setAllowVanJacobsonConnectionIDCompression(boolean allowVanJacobsonConnectionIDCompression)
allowVanJacobsonConnectionIDCompression
- public boolean isAllowBsdCompression()
public void setAllowBsdCompression(boolean allowBsdCompression)
allowBsdCompression
- public boolean isAllowDeflateCompression()
public void setAllowDeflateCompression(boolean allowDeflateCompression)
allowDeflateCompression
- public boolean isAllowMagic()
public void setAllowMagic(boolean allowMagic)
allowMagic
- public int getLcp_echo_failure()
public void setLcp_echo_failure(int lcp_echo_failure)
lcp_echo_failure
- number of unanswered LCP echo requests before peer is assumed deadpublic int getLcp_echo_interval()
public void setLcp_echo_interval(int lcp_echo_interval)
lcp_echo_interval
- in secondspublic boolean isUseRtsCtsFlowControl()
public void setUseRtsCtsFlowControl(boolean useRtsCtsFlowControl)
useRtsCtsFlowControl
- public boolean isLockSerialDevice()
public void setLockSerialDevice(boolean lockSerialDevice)
lockSerialDevice
- public boolean isUseModemControlLines()
public void setUseModemControlLines(boolean useModemControlLines)
useModemControlLines
- public boolean isPeerMustAuthenticateItself()
public void setPeerMustAuthenticateItself(boolean peerMustAuthenticateItself)
peerMustAuthenticateItself
- public int getConnect_delay()
public void setConnect_delay(int connect_delay)
connect_delay
- in millisecondspublic boolean isEnableDebug()
public void setEnableDebug(boolean enableDebug)
enableDebug
- - enable connection debuggingpublic void write(String filename) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |