Class JSONMessageProcessor

  extended by
All Implemented Interfaces:

public class JSONMessageProcessor
extends Object
implements MessageProcessor

MessageProcessor implementation that builds a JSONObject or JSONArray from a message body, and then updates the Object representation of the message body with that object.

BlackBerry API 6.0.0

Constructor Summary
          Constructs an JSONMessageProcessor.
Method Summary
 void process(Message message)
          Processes a Message and builds a JSONObject or JSONArray using the data in the message body.
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public JSONMessageProcessor()
Constructs an JSONMessageProcessor.

BlackBerry API 6.0.0

Method Detail


public void process(Message message)
             throws MessageProcessorException
Processes a Message and builds a JSONObject or JSONArray using the data in the message body. Updates the message body with this new object.

Specified by:
process in interface MessageProcessor
message - The Message to process.
MessageProcessorException - If there is a problem parsing the message body.
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.