net.rim.device.api.io.parser.xml
Class XMLHashtableMessageProcessor
java.lang.Object
net.rim.device.api.io.parser.xml.XMLHashtableMessageProcessor
- All Implemented Interfaces:
- MessageProcessor
public class XMLHashtableMessageProcessor
- extends Object
- implements MessageProcessor
MessageProcessor
implementation that
builds an XMLHashtable
from the message body, and then
updates the Object representation of the message body.
- Since:
- BlackBerry API 6.0.0
Constructor Summary |
XMLHashtableMessageProcessor(boolean includeNamespaces,
boolean includeExplicitPath)
Constructs an XMLHashtableMessageProcessor . |
XMLHashtableMessageProcessor
public XMLHashtableMessageProcessor(boolean includeNamespaces,
boolean includeExplicitPath)
- Constructs an
XMLHashtableMessageProcessor
.
- Parameters:
includeNamespaces
- Indicates whether namespaces should be included in the Hashtable
keys.includeExplicitPath
- Indicates whether indexes should be included in the Hashtable
keys. For example,
/team/person/name (no index), or /team:0/person:0/name:0 (index included). Indexes can be useful when arrays are being processed.
Indexes must be included in every path segment, or not used at all.- Since:
- BlackBerry API 6.0.0
process
public void process(Message message)
throws MessageProcessorException
- Processes a
Message
and builds a
XMLHashtable
using the data in the message body. Updates
the message body with this new object.
- Specified by:
process
in interface MessageProcessor
- Parameters:
message
- Message to process.
- Throws:
MessageProcessorException
- If there is a problem parsing the message body.- Since:
- BlackBerry API 6.0.0
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.