public class AccessPointManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addListener(AccessPointListener listener)
Registers listener for access point related events
|
AccessPoint |
getAccessPointById(int id)
Factory method to get access point by Id.
|
AccessPoint |
getAccessPointFromConnection(javax.microedition.io.Connection c)
Gets the access point used in the specified connection.
|
AccessPoint[] |
getAllAccessPoints()
Get all access points defined in the system.
|
AccessPoint |
getDefaultAccessPoint()
Returns the access point to be used for all suite connection for which
access point was not specified explicitly.
|
static AccessPointManager |
getInstance() |
void |
removeListener(AccessPointListener listener)
Removes listener for access point related events
|
public static AccessPointManager getInstance()
public void addListener(AccessPointListener listener)
listener
- AccessPointListener object to receive notifications
about access pointspublic void removeListener(AccessPointListener listener)
listener
- access point listener to removepublic AccessPoint[] getAllAccessPoints()
public AccessPoint getDefaultAccessPoint()
public AccessPoint getAccessPointById(int id)
id
- the id of the access pointpublic AccessPoint getAccessPointFromConnection(javax.microedition.io.Connection c) throws java.io.IOException
c
- network Connection instance to get access pointjava.io.IOException
- if any I/O error occursjava.lang.IllegalArgumentException
- it c is not a network connectionCopyright (c) 1990, 2013, Oracle and/or its affiliates. All rights reserved.