railo.runtime.converter
Class JSConverter

java.lang.Object
  extended by railo.runtime.converter.JSConverter

public final class JSConverter
extends Object

class to serialize to Convert Cold Fusion Objects (query,array,struct usw) to a JavaScript representation


Constructor Summary
JSConverter()
           
 
Method Summary
 String serialize(Object object, String clientVariableName)
          serialize a Cold Fusion object to a JavaScript Object
 void useShortcuts(boolean useShortcuts)
           
 void useWDDX(boolean useWDDX)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSConverter

public JSConverter()
Method Detail

serialize

public String serialize(Object object,
                        String clientVariableName)
                 throws ConverterException
serialize a Cold Fusion object to a JavaScript Object

Parameters:
object - object to serialize
clientVariableName - name of the variable to create
Returns:
vonverte Javascript Code as String
Throws:
ConverterException

useShortcuts

public void useShortcuts(boolean useShortcuts)

useWDDX

public void useWDDX(boolean useWDDX)


Copyright © 2012 Railo