|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.marre.wap.push.WapSLPush
Represents a WAP Service Loading Push message.
Field Summary | |
protected java.lang.String |
action_
The action. |
static java.lang.String |
ACTION_EXECUTE_CACHE
Action, execute-cache |
static java.lang.String |
ACTION_EXECUTE_HIGH
Action, execute-high |
static java.lang.String |
ACTION_EXECUTE_LOW
Action, execute-low |
static java.lang.String[] |
SL_ATTR_START_TOKENS
WBXML attr start tokens for wap sl push. |
static java.lang.String[] |
SL_ATTR_VALUE_TOKENS
WBXML attr value tokens for wap sl push. |
static java.lang.String[] |
SL_TAG_TOKENS
WBXML tag tokens for wap sl push. |
protected java.lang.String |
uri_
The uri. |
static java.lang.String |
WBXML_CONTENT_TYPE
WBXML content type |
static java.lang.String |
XML_CONTENT_TYPE
XML content type |
Constructor Summary | |
WapSLPush(java.lang.String uri)
Constructor. |
Method Summary | |
java.lang.String |
getAction()
Retrieves the current set action. |
java.lang.String |
getContentType()
Returns the text content type. |
java.lang.String |
getUri()
Returns the URI. |
java.lang.String |
getWbxmlContentType()
Returns the wbxml content type. |
XmlWriter |
getWbxmlWriter(java.io.OutputStream os)
Returns a wbxml writer. |
void |
setAction(java.lang.String action)
Set the action. |
void |
setUri(java.lang.String uri)
Sets the URI. |
void |
writeXmlTo(XmlWriter writer)
Writes the xml document to the given writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String WBXML_CONTENT_TYPE
public static final java.lang.String XML_CONTENT_TYPE
public static final java.lang.String ACTION_EXECUTE_LOW
public static final java.lang.String ACTION_EXECUTE_HIGH
public static final java.lang.String ACTION_EXECUTE_CACHE
public static final java.lang.String[] SL_TAG_TOKENS
public static final java.lang.String[] SL_ATTR_START_TOKENS
public static final java.lang.String[] SL_ATTR_VALUE_TOKENS
protected java.lang.String uri_
protected java.lang.String action_
Constructor Detail |
public WapSLPush(java.lang.String uri)
uri
- Method Detail |
public java.lang.String getUri()
public void setUri(java.lang.String uri)
uri
- public java.lang.String getAction()
public void setAction(java.lang.String action)
action
- Can be ACTION_EXECUTE_LOW, ACTION_EXECUTE_HIGH or ACTION_EXECUTE_CACHE.public void writeXmlTo(XmlWriter writer) throws java.io.IOException
writeXmlTo
in interface XmlDocument
writer
-
java.io.IOException
- Thrown if failed to write to xmlwriter.public XmlWriter getWbxmlWriter(java.io.OutputStream os)
getWbxmlWriter
in interface WbxmlDocument
os
- The os to write to.
public java.lang.String getWbxmlContentType()
getWbxmlContentType
in interface WbxmlDocument
public java.lang.String getContentType()
getContentType
in interface XmlDocument
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |