railo.runtime.net.amf
Class OpenAMFCaster

java.lang.Object
  extended by railo.runtime.net.amf.OpenAMFCaster
All Implemented Interfaces:
AMFCaster

public final class OpenAMFCaster
extends Object
implements AMFCaster

Cast a CFML object to AMF Objects and the other way


Method Summary
static AMFCaster getInstance()
           
 void init(Map arguments)
           
 Object toAMFObject(Object o)
          cast cfml Object to AMF Object
 Object toCFMLObject(Object amf)
          cast a amf Object to cfml Object
static String toStringType(byte type)
          translate a AMFBody type to a String type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static AMFCaster getInstance()

toAMFObject

public Object toAMFObject(Object o)
                   throws PageException
cast cfml Object to AMF Object

Specified by:
toAMFObject in interface AMFCaster
Parameters:
o -
Returns:
Throws:
PageException

toCFMLObject

public Object toCFMLObject(Object amf)
                    throws PageException
Description copied from interface: AMFCaster
cast a amf Object to cfml Object

Specified by:
toCFMLObject in interface AMFCaster
Throws:
PageException

toStringType

public static String toStringType(byte type)
translate a AMFBody type to a String type

Parameters:
type -
Returns:
string type

init

public void init(Map arguments)
Specified by:
init in interface AMFCaster


Copyright © 2012 Railo