railo.runtime.converter
Class JSConverter

java.lang.Object
  extended by railo.runtime.converter.ConverterSupport
      extended by railo.runtime.converter.JSConverter
All Implemented Interfaces:
StringConverter

public final class JSConverter
extends ConverterSupport

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


Constructor Summary
JSConverter()
           
 
Method Summary
 String serialize(Object object, String clientVariableName)
          serialize a CFML object to a JavaScript Object
 void useShortcuts(boolean useShortcuts)
           
 void useWDDX(boolean useWDDX)
           
 void writeOut(PageContext pc, Object source, Writer writer)
           
 
Methods inherited from class railo.runtime.converter.ConverterSupport
toConverterException
 
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 CFML 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

writeOut

public void writeOut(PageContext pc,
                     Object source,
                     Writer writer)
              throws ConverterException,
                     IOException
Throws:
ConverterException
IOException

useShortcuts

public void useShortcuts(boolean useShortcuts)

useWDDX

public void useWDDX(boolean useWDDX)


Copyright © 2012 Railo