com.ideo.sweetdevria.event
Class RiaJsEventRegistry

java.lang.Object
  extended by com.ideo.sweetdevria.event.RiaJsEventRegistry
All Implemented Interfaces:
java.io.Serializable

public class RiaJsEventRegistry
extends java.lang.Object
implements java.io.Serializable

RiaEvent responses container for the client

Author:
Julien Maupoux
See Also:
Serialized Form

Constructor Summary
RiaJsEventRegistry()
           
 
Method Summary
 void addEvent(RiaEvent _evt)
          Add an event to the responses of this event request This event will be cloned to avoid recursive JSON parsing
 java.lang.String toJson()
          Format this response as JSON
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RiaJsEventRegistry

public RiaJsEventRegistry()
Method Detail

addEvent

public void addEvent(RiaEvent _evt)
Add an event to the responses of this event request This event will be cloned to avoid recursive JSON parsing

Parameters:
_evt - the event to add as a response

toJson

public java.lang.String toJson()
Format this response as JSON

Returns:
the JSON String formatted, or the empty String if no response must be processed


Copyright © 2010 Ideo Technologies. All Rights Reserved.