public abstract class BrowserSettings extends OTAMessage
This class cannot be used directly, instead use one of the classes below, depending on the bearer type.
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
ACK_TIME, MT_BINARY, MT_STATUS, MT_TEXT, SENDER_TYPE_ALPHA, SENDER_TYPE_GUESS, SENDER_TYPE_NUMBER
Modifier and Type | Method and Description |
---|---|
void |
addBookmark(Bookmark bookmark)
Add a Bookmark to this Browser Settings.
|
java.util.Iterator |
getBookmarks()
Returns an Iterator over all Bookmarks.
|
java.lang.String |
getBrowserSettingID()
Returns the ID which has been set by
setBrowserSettingID(String)
or null if the ID is not set. |
java.lang.String |
getMMSURL()
Returns the URL of the MMSC.
|
java.lang.String |
getName()
Get the user-recognisable name for te BrowserSettings.
|
int |
getPort()
Get the current port setting.
|
java.lang.String |
getProxy()
Returns the proxy address or null if unset.
|
boolean |
removeBookmark(Bookmark bookmark)
Remove a Bookmark from the Browser Settings.
|
void |
setBrowserSettingID(java.lang.String id)
Define an ID to be used to provide some security to the provisioning
application.
|
void |
setMMSURL(java.lang.String url)
Specify the URL of the MMSC.
|
void |
setName(java.lang.String name)
Set the user-recognisable name for the BrowserSettings.
|
void |
setPort(int port)
Set the port number.
|
void |
setProxy(java.lang.String address)
Specify the address of the proxy.
|
buildParts, buildParts, getParts, getTimestamp, toString
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
clone, getProperty, getSenderType, setID, setProperty, setSenderType
public void setProxy(java.lang.String address) throws java.lang.IllegalArgumentException
GsmUssdBrowserSettings.setProxyIPV4(boolean)
.address
- the proxy address (max length: 21) or null to clear the
proxy address.java.lang.IllegalArgumentException
- if the address length exceeds 21 characters.public java.lang.String getProxy()
public void setPort(int port) throws java.lang.IllegalArgumentException
If no Port is specified, a default value of 9200 is assumed.
port
- the port number, one of 9200,9201,9202,9203java.lang.IllegalArgumentException
- if an illegal port value has been specified.public int getPort()
public void addBookmark(Bookmark bookmark)
Several bookmarks can be added to the Browser Settings. However, the maximum number of bookmarks accepted is manufacturer specific.
bookmark
- the bookmark to addpublic java.util.Iterator getBookmarks()
public boolean removeBookmark(Bookmark bookmark)
bookmark
- the Bookmark to removepublic void setBrowserSettingID(java.lang.String id) throws java.lang.IllegalArgumentException
Support for the ID is manufacturer specific.
id
- the ID (max length: 8), use null to clear the ID.java.lang.IllegalArgumentException
- if the length of the ID exceeds
8 characters.public java.lang.String getBrowserSettingID()
setBrowserSettingID(String)
or null if the ID is not set.public void setName(java.lang.String name) throws java.lang.IllegalArgumentException
name
- the name (maximum length: 20) or null to clear the namejava.lang.IllegalArgumentException
- if the length of the name exceeds 20 characters.public java.lang.String getName()
public void setMMSURL(java.lang.String url) throws java.lang.IllegalArgumentException
url
- the MMSC URL (max length: 100) or null to clear the URL.java.lang.IllegalArgumentException
- if the length of the URL exceeds 100 characters.public java.lang.String getMMSURL()
object XP, Inc. © 2000-2013. All rights reserved object XP