public class BearerControl extends Object implements BearerControlStates
SocketConnection
,
BearerControlListener
BEARER_STATE_CLOSING, BEARER_STATE_CONNECTING, BEARER_STATE_DOWN, BEARER_STATE_LIMITED_UP, BEARER_STATE_UNKNOWN, BEARER_STATE_UP
Modifier and Type | Method and Description |
---|---|
static void |
addListener(BearerControlListener listener)
Registers listeners to receive bearer state changes.
|
static void |
addListenerEx(BearerControlListenerEx listener)
Registers listeners to receive bearer state changes.
|
static void |
clearListener()
Removes all listener objects which have been previously added to the
list table of listener objects.
|
static String[] |
GetBearerList()
Retrieve a string list with all current defined bearers in the system.
|
static int |
GetBearerState(String APN)
Retrieve the current state of the bearer.
|
static String |
GetBearerV4Addr(String APN)
Retrieve the current IPv4 address of the bearer.
|
static String |
GetBearerV4Dns1(String APN)
Retrieve the current IPv4 DNS1 address of the bearer.
|
static String |
GetBearerV4Dns2(String APN)
Retrieve the current IPv4 DNS2 address of the bearer.
|
static String |
GetBearerV6Addr(String APN) |
static String |
GetBearerV6Dns1(String APN) |
static String |
GetBearerV6Dns2(String APN) |
static void |
hangUp()
Triggers closure of all active Java networking bearers, like the networking idle timeout.
|
static int |
hangUp(String APN)
Triggers closure of a dedicated networking bearer.
|
static void |
removeListener(BearerControlListener listener)
Removes a listener object which has been previously added to the internal
list table of listener objects.
|
static void |
removeListenerEx(BearerControlListenerEx listener)
Removes a listener object which has been previously added to the internal
list table of listener objects.
|
public static void addListener(BearerControlListener listener)
listener
- The BearerControlListener object to be registered.BearerControlListener
,
removeListener(com.cinterion.io.BearerControlListener)
public static void removeListener(BearerControlListener listener)
listener
- The BearerControlListener object to be removed from the list.BearerControlListener
,
addListener(com.cinterion.io.BearerControlListener)
public static void addListenerEx(BearerControlListenerEx listener)
listener
- The BearerControlListenerEx object to be registered.BearerControlListenerEx
,
removeListenerEx(com.cinterion.io.BearerControlListenerEx)
public static void removeListenerEx(BearerControlListenerEx listener)
listener
- The BearerControlListenerEx object to be removed from the list.BearerControlListener
,
addListener(com.cinterion.io.BearerControlListener)
public static void clearListener()
public static void hangUp()
public static int hangUp(String APN)
APN
- a String with the APN which identifies the networking connectionpublic static int GetBearerState(String APN)
APN
- a String with the APN which identifies the networking bearerpublic static String GetBearerV4Addr(String APN) throws IOException
APN
- a String with the APN which identifies the networking bearerIOException
public static String GetBearerV4Dns1(String APN) throws IOException
APN
- a String with the APN which identifies the networking bearerIOException
public static String GetBearerV4Dns2(String APN) throws IOException
APN
- a String with the APN which identifies the networking bearerIOException
public static String GetBearerV6Addr(String APN) throws IOException
IOException
public static String GetBearerV6Dns1(String APN) throws IOException
IOException
public static String GetBearerV6Dns2(String APN) throws IOException
IOException
public static String[] GetBearerList()
Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.