com.nokia.mid.iapinfo
Class DestinationNetwork

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

public class DestinationNetwork
extends java.lang.Object

Destination network represents a named group of access points. Each destination network has an Id that is appended to given URL to make connection with this destination network (prior to Java GCF). Class stores destination network related information, such as:


Method Summary
 AccessPoint[] getAccessPoints()
          Gets the access points which belongs to this destination network.
 int getID()
          Gets the ID of the destination network.
 java.lang.String getName()
          Gets the name of the destination network.
 java.lang.String getURL(java.lang.String aURL)
          Returns url with destination network ID parameter added.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAccessPoints

public AccessPoint[] getAccessPoints()
                              throws IAPInfoException
Gets the access points which belongs to this destination network.

Returns:
the access point IDs
Throws:
IAPInfoException

getID

public int getID()
Gets the ID of the destination network.

Returns:
the ID of the destination network

getURL

public java.lang.String getURL(java.lang.String aURL)
Returns url with destination network 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_netid=2"

when current Destination Network ID is 2

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

getName

public java.lang.String getName()
Gets the name of the destination network.

Returns:
the name of the destination network


Copyright © 2007 Nokia Corporation. All rights reserved.