flex.messaging.io
Class SerializationContext

java.lang.Object
  extended by flex.messaging.io.SerializationContext
All Implemented Interfaces:
Serializable, Cloneable

public class SerializationContext
extends Object
implements Serializable, Cloneable

A simple context to get settings from an endpoint to a deserializer or serializer.

See Also:
Serialized Form

Field Summary
 boolean createASObjectForMissingType
          Determines whether an ASObject is created by default for a type that is missing on the server, instead of throwing a server resource not found exception.
 boolean enableSmallMessages
          Provides a way to control whether small messages should be sent even if the client can support them.
 boolean ignorePropertyErrors
           
 boolean instantiateTypes
          Determines whether type information will be used to instantiate a new instance.
 boolean legacyBigNumbers
           
 boolean legacyCollection
           
 boolean legacyExternalizable
           
 boolean legacyMap
           
 boolean legacyThrowable
           
 boolean legacyXMLDocument
           
 boolean legacyXMLNamespaces
           
 boolean logPropertyErrors
           
 boolean restoreReferences
           
 boolean supportDatesByReference
           
 boolean supportRemoteClass
           
 
Constructor Summary
SerializationContext()
           
 
Method Summary
static void clearThreadLocalObjects()
          Clears out the thread local state after the request completes.
 Object clone()
           
 Class getDeserializerClass()
           
static SerializationContext getSerializationContext()
           
 Class getSerializerClass()
           
 MessageDeserializer newMessageDeserializer()
           
 MessageSerializer newMessageSerializer()
           
 void setDeserializerClass(Class c)
           
static void setSerializationContext(SerializationContext context)
          Establishes a SerializationContext for the current thread.
 void setSerializerClass(Class c)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

legacyXMLDocument

public boolean legacyXMLDocument

legacyXMLNamespaces

public boolean legacyXMLNamespaces

legacyCollection

public boolean legacyCollection

legacyMap

public boolean legacyMap

legacyThrowable

public boolean legacyThrowable

legacyBigNumbers

public boolean legacyBigNumbers

legacyExternalizable

public boolean legacyExternalizable

restoreReferences

public boolean restoreReferences

supportRemoteClass

public boolean supportRemoteClass

supportDatesByReference

public boolean supportDatesByReference

createASObjectForMissingType

public boolean createASObjectForMissingType
Determines whether an ASObject is created by default for a type that is missing on the server, instead of throwing a server resource not found exception.


enableSmallMessages

public boolean enableSmallMessages
Provides a way to control whether small messages should be sent even if the client can support them. If set to false, small messages will not be sent. The default is true.


instantiateTypes

public boolean instantiateTypes
Determines whether type information will be used to instantiate a new instance. If set to false, types will be deserialized as flex.messaging.io.ASObject instances with type information retained but not used to create an instance. Note that types in the flex.* package (and any subpackage) will always be instantiated. The default is true.


ignorePropertyErrors

public boolean ignorePropertyErrors

logPropertyErrors

public boolean logPropertyErrors
Constructor Detail

SerializationContext

public SerializationContext()
Method Detail

getDeserializerClass

public Class getDeserializerClass()

setDeserializerClass

public void setDeserializerClass(Class c)

getSerializerClass

public Class getSerializerClass()

setSerializerClass

public void setSerializerClass(Class c)

newMessageDeserializer

public MessageDeserializer newMessageDeserializer()

newMessageSerializer

public MessageSerializer newMessageSerializer()

clone

public Object clone()
Overrides:
clone in class Object

setSerializationContext

public static void setSerializationContext(SerializationContext context)
Establishes a SerializationContext for the current thread. Users are not expected to call this function.

Parameters:
context - The current SerializationContext.

getSerializationContext

public static SerializationContext getSerializationContext()
Returns:
The current thread's SerializationContext.

clearThreadLocalObjects

public static void clearThreadLocalObjects()
Clears out the thread local state after the request completes.



Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/io/SerializationContext.html