Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.common
Class Bookmark

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byoracle.panama.messaging.common.Bookmark

All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class Bookmark
extends java.util.Hashtable

This class allows developers to create a bookmark object which is used to send Bookmarks as OTA Settings.

   Eg:     Bookmark bm = new Bookmark();  
           // do required set operations
           bm.setName(..);
           bm.setURL(..);
           ..                
           ..
           //set the bookmark as Message content
           Message msg = new Message();
           msg.setContent(bm);
           message.setContentType(ContentTypes.BOOKMARK);
   
See Also:
Message, Serialized Form

Field Summary
static java.lang.String BOOKMARKNAME
Key for Bookmark name.
static java.lang.String BOOKMARKURL
Key for Bookmark url.
static java.lang.String MIME
The MIME type for Bookmark.
static java.lang.String PHONE_MODEL
Key for phone model.
static java.lang.String VERSION_10
Allowed value for WBXML version.
static java.lang.String VERSION_11
Allowed value for WBXML version.
static java.lang.String WBXML_VERSION
Key for WBXML version.

Constructor Summary
Bookmark()
Constructor.

Method Summary
void setName(java.lang.String name)
This method is used to set the name of the bookmark.
void setPhoneModel(java.lang.String model)
Set the phone model.
void setURL(java.lang.String url)
This method is used to set the url for the bookmark.
void setVersion(java.lang.String version)
This method is used to set the version of the WBXML to used while sending the bookmark setting.

Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

Field Detail

BOOKMARKNAME

public static final java.lang.String BOOKMARKNAME
Key for Bookmark name.
See Also:
Constant Field Values

BOOKMARKURL

public static final java.lang.String BOOKMARKURL
Key for Bookmark url.
See Also:
Constant Field Values

MIME

public static final java.lang.String MIME
The MIME type for Bookmark.
See Also:
Constant Field Values

PHONE_MODEL

public static final java.lang.String PHONE_MODEL
Key for phone model.
See Also:
Constant Field Values

VERSION_10

public static final java.lang.String VERSION_10
Allowed value for WBXML version. Defines version 1.0
See Also:
Constant Field Values

VERSION_11

public static final java.lang.String VERSION_11
Allowed value for WBXML version. Defines verison 1.1.
See Also:
Constant Field Values

WBXML_VERSION

public static final java.lang.String WBXML_VERSION
Key for WBXML version.
See Also:
Constant Field Values

Constructor Detail

Bookmark

public Bookmark()
Constructor. Creates Bookmark object with WBXML verison of 1.1

Method Detail

setName

public void setName(java.lang.String name)
This method is used to set the name of the bookmark.

setPhoneModel

public void setPhoneModel(java.lang.String model)
Set the phone model. The phone model should be of the format: "band type", for example: "Nokia 6210", "Ericsson T68i". It is case insensitive.

setURL

public void setURL(java.lang.String url)
This method is used to set the url for the bookmark.

setVersion

public void setVersion(java.lang.String version)
This method is used to set the version of the WBXML to used while sending the bookmark setting.
Parameters:
version - can be VERSION_10 (WBXML 1.0) or VERSION_11(WBXML 1.1)

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.