com.nokia.mid.iapinfo
Class AccessPoint

java.lang.Object
  extended by com.nokia.mid.iapinfo.AccessPoint

public class AccessPoint
extends java.lang.Object

Stores access point related information, such as:


All information is defined and obtained from operating system. In order to make connection with specific access point use :

 AccessPoint ap;
  ... 
 Connection.open(ap.getURL("http://www.nokia.com"));
 


Method Summary
 java.lang.String getBearerType()
          Gets bearer type name of the access point defined in the system E.g.
 int getID()
          Gets the ID of the access point.
 java.lang.String getName()
          Gets the name of the access point.
 java.lang.String getServiceType()
          Gets the service type name of the access point defined in the system.
 java.lang.String getURL(java.lang.String aURL)
          Returns url with access point ID parameter added.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getServiceType

public java.lang.String getServiceType()
Gets the service type name of the access point defined in the system. E.g. "OutgoingGPRS" or "DialOutISP" or any.

Returns:
the service type name of the access point

getBearerType

public java.lang.String getBearerType()
Gets bearer type name of the access point defined in the system E.g. "ModemBearer" or "LanBearer" or any.

Returns:
the bearer type name of the access point

getID

public int getID()
Gets the ID of the access point.

Returns:
the ID of the access point

getName

public java.lang.String getName()
Gets the name of the access point.

Returns:
the name of the access point

getURL

public java.lang.String getURL(java.lang.String aURL)
Returns url with access point ID parameter added. Parameter is added to given URL string. See also Java Generic Connection Framework (GCF). Example:

getURL("http://www.nokia.com:80");

returns "http://www.nokia.com:80;nokia_apnid=2"

when current AccessPoint ID is 2

Parameters:
aURL - the original URL
Returns:
the URL containing the access point ID


Copyright © 2007 Nokia Corporation. All rights reserved.