com.objectxp.msg.ota
Class Bookmark

java.lang.Object
  extended bycom.objectxp.msg.Message
      extended bycom.objectxp.msg.SmsMessage
          extended bycom.objectxp.msg.ota.OTAMessage
              extended bycom.objectxp.msg.ota.Bookmark
All Implemented Interfaces:
java.lang.Cloneable, MultiPartMessage, java.io.Serializable

public class Bookmark
extends OTAMessage

This class may be used to send OTA Browser bookmarks using WAP PUSH over SMS. The browser bookmarks are used to provide handsets with bookmarks of any kind that can be used for browsing.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.objectxp.msg.SmsMessage
CLASS_0, CLASS_1, CLASS_2, CLASS_3, DC_8BIT, DC_DEFAULT, DC_GROUP_DATA, DC_GROUP_GENERAL, DC_GROUP_MSG_WAITING_DISCARD, DC_GROUP_MSG_WAITING_STORE, DC_UCS2, INDICATION_ACTIVE, INDICATION_INACTIVE, INDICATION_TYPE_EMAIL, INDICATION_TYPE_FAX, INDICATION_TYPE_OTHER, INDICATION_TYPE_VOICEMAIL, NO_CLASS
 
Fields inherited from class com.objectxp.msg.Message
ACK_TIME, MT_BINARY, MT_STATUS, MT_TEXT, SENDER_TYPE_ALPHA, SENDER_TYPE_GUESS, SENDER_TYPE_NUMBER
 
Constructor Summary
Bookmark(java.lang.String name, java.lang.String url)
          Constructs a OTA bookmark with the given name and refering to the given URL.
 
Method Summary
 java.lang.String getName()
          Get the Name of this Bookmark
 java.lang.String getURL()
          Get the URL of this Bookmark
 void setName(java.lang.String name)
          Set the Name of this Bookmark
 void setURL(java.lang.String url)
          Set the URL of this Bookmark.
 
Methods inherited from class com.objectxp.msg.ota.OTAMessage
buildParts, buildParts, getParts, toString
 
Methods inherited from class com.objectxp.msg.SmsMessage
containsUserDataHeader, copyFields, getAlphabet, getBytes, getCodingGroup, getDeferredDeliveryAsDate, getDeferredDeliveryInMinutes, getID, getIndicationState, getIndicationType, getMessage, getMessageClass, getParent, getPID, getRecipient, getRecipientAddress, getSender, getSenderAddress, getType, getUserData, getUserDataHeader, getValidityPeriodAsDate, getValidityPeriodInMinutes, hasDeferredDelivery, hasMessageClass, hasValidityPeriod, isCompressed, isMMS, isRejectDuplicates, isRelativeDeferredDelivery, isRelativeValidityPeriod, isReplyPath, requestStatusReport, requestStatusReport, setAlphabet, setCodingGroup, setCompression, setDeferredDelivery, setDeferredDelivery, setIndicationState, setIndicationType, setMessage, setMessage, setMessageClass, setMMS, setParent, setPID, setRecipient, setRecipientAddress, setRejectDuplicates, setReplyPath, setSender, setSenderAddress, setType, setUserData, setUserDataHeader, setUserDataHeader, setValidityPeriod, setValidityPeriod
 
Methods inherited from class com.objectxp.msg.Message
clone, getProperty, getSenderType, getTimestamp, setID, setProperty, setSenderType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bookmark

public Bookmark(java.lang.String name,
                java.lang.String url)
         throws java.lang.IllegalArgumentException
Constructs a OTA bookmark with the given name and refering to the given URL.

Parameters:
name - (max 50 bytes)
url - (max 255 bytes)
Throws:
java.lang.IllegalArgumentException - if name or URL are either null or exceed the allowed length
See Also:
BrowserSettings
Method Detail

getName

public java.lang.String getName()
Get the Name of this Bookmark

Returns:
the name

getURL

public java.lang.String getURL()
Get the URL of this Bookmark

Returns:
the URL

setName

public void setName(java.lang.String name)
             throws java.lang.IllegalArgumentException
Set the Name of this Bookmark

Parameters:
name - the name (max length: 50)
Throws:
java.lang.IllegalArgumentException - if the name is null or its length exceeds 50 characters

setURL

public void setURL(java.lang.String url)
            throws java.lang.IllegalArgumentException
Set the URL of this Bookmark.

Parameters:
url - the URL (max length: 255)
Throws:
java.lang.IllegalArgumentException - if the URL is null or its length exceeds 255 characters


object XP, Inc. © 2000-2007. All rights reserved object XP