Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.common
Class WapPush

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

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

public class WapPush
extends java.util.Hashtable

This class can be used to push contents to wap clients using Push OTA protocol.

See Also:
Serialized Form

Field Summary
static java.lang.String MIME
MIME type for wap push.
static java.lang.String PHONE_MODEL
Key for phone model.
static java.lang.String PUSH_TEXT
Key for text to push.
static java.lang.String PUSH_URL
Key for url.

Constructor Summary
WapPush()

Method Summary
void setPhoneModel(java.lang.String s)
Set the phone model.
void setText(java.lang.String s)
Sets the text to be pushed.
void setUrl(java.lang.String s)
Sets the url to push

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

MIME

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

PHONE_MODEL

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

PUSH_TEXT

public static final java.lang.String PUSH_TEXT
Key for text to push.
See Also:
Constant Field Values

PUSH_URL

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

Constructor Detail

WapPush

public WapPush()

Method Detail

setPhoneModel

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

setText

public void setText(java.lang.String s)
Sets the text to be pushed.
Parameters:
s - text to push.

setUrl

public void setUrl(java.lang.String s)
Sets the url to push
Parameters:
s - url to push

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.