public class PDPSession extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ACTIVATED
Activated state value
|
static int |
DEACTIVATED
Deactivated state value
|
Constructor and Description |
---|
PDPSession(String apn,
String login,
String password)
Constructs a PDP session.
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activates PDP session.
|
void |
deactivate()
Deactivates PDP session.
|
int |
getState() |
public static final int ACTIVATED
public static final int DEACTIVATED
public PDPSession(String apn, String login, String password)
DEACTIVATED
.apn
- Access Point Namelogin
- Access Point Name loginpassword
- Access Point Name passwordpublic void activate() throws PDPSessionException
PDPSessionException
if an error occurred during activation. This method
is thread safe.PDPSessionException
- If an error occurred during PDP session activation.public void deactivate() throws PDPSessionException
PDPSessionException
if an error occurred during deactivation. This method is thread safe.PDPSessionException
- If an error occurred during PDP session deactivation.public int getState()
ACTIVATED
or DEACTIVATED
). This method is thread
safe.