Class JsonResponseProcessor
java.lang.Object
jadex.transformation.jsonserializer.processors.AbstractJsonProcessor
jadex.publishservice.publish.json.JsonResponseProcessor
- All Implemented Interfaces:
jadex.common.transformation.traverser.ITraverseProcessor
public class JsonResponseProcessor
extends jadex.transformation.jsonserializer.processors.AbstractJsonProcessor
jax.rs.Response processor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisApplicable(Object object, Type type, ClassLoader targetcl, jadex.transformation.jsonserializer.processors.JsonReadContext context) Test if the processor is applicable for reading.protected booleanisApplicable(Object object, Type type, ClassLoader targetcl, jadex.transformation.jsonserializer.processors.JsonWriteContext context) Test if the processor is applicable for writing.protected ObjectreadObject(Object object, Type type, jadex.common.transformation.traverser.Traverser traverser, List<jadex.common.transformation.traverser.ITraverseProcessor> conversionprocessors, List<jadex.common.transformation.traverser.ITraverseProcessor> processors, jadex.common.transformation.IStringConverter converter, jadex.common.transformation.traverser.Traverser.MODE mode, ClassLoader targetcl, jadex.transformation.jsonserializer.processors.JsonReadContext context) Read an object.protected ObjectwriteObject(Object object, Type type, jadex.common.transformation.traverser.Traverser traverser, List<jadex.common.transformation.traverser.ITraverseProcessor> conversionprocessors, List<jadex.common.transformation.traverser.ITraverseProcessor> processors, jadex.common.transformation.IStringConverter converter, jadex.common.transformation.traverser.Traverser.MODE mode, ClassLoader targetcl, jadex.transformation.jsonserializer.processors.JsonWriteContext context) Write an object.Methods inherited from class jadex.transformation.jsonserializer.processors.AbstractJsonProcessor
isApplicable, process
-
Constructor Details
-
JsonResponseProcessor
public JsonResponseProcessor()
-
-
Method Details
-
isApplicable
protected boolean isApplicable(Object object, Type type, ClassLoader targetcl, jadex.transformation.jsonserializer.processors.JsonReadContext context) Test if the processor is applicable for reading.- Specified by:
isApplicablein classjadex.transformation.jsonserializer.processors.AbstractJsonProcessor- Parameters:
object- The object.targetcl- If not null, the traverser should make sure that the result object is compatible with the class loader, e.g. by cloning the object using the class loaded from the target class loader.- Returns:
- True, if is applicable.
-
isApplicable
protected boolean isApplicable(Object object, Type type, ClassLoader targetcl, jadex.transformation.jsonserializer.processors.JsonWriteContext context) Test if the processor is applicable for writing.- Specified by:
isApplicablein classjadex.transformation.jsonserializer.processors.AbstractJsonProcessor- Parameters:
object- The object.targetcl- If not null, the traverser should make sure that the result object is compatible with the class loader, e.g. by cloning the object using the class loaded from the target class loader.- Returns:
- True, if is applicable.
-
readObject
protected Object readObject(Object object, Type type, jadex.common.transformation.traverser.Traverser traverser, List<jadex.common.transformation.traverser.ITraverseProcessor> conversionprocessors, List<jadex.common.transformation.traverser.ITraverseProcessor> processors, jadex.common.transformation.IStringConverter converter, jadex.common.transformation.traverser.Traverser.MODE mode, ClassLoader targetcl, jadex.transformation.jsonserializer.processors.JsonReadContext context) Read an object.- Specified by:
readObjectin classjadex.transformation.jsonserializer.processors.AbstractJsonProcessor- Parameters:
object- The object.targetcl- If not null, the traverser should make sure that the result object is compatible with the class loader, e.g. by cloning the object using the class loaded from the target class loader.- Returns:
- The processed object.
-
writeObject
protected Object writeObject(Object object, Type type, jadex.common.transformation.traverser.Traverser traverser, List<jadex.common.transformation.traverser.ITraverseProcessor> conversionprocessors, List<jadex.common.transformation.traverser.ITraverseProcessor> processors, jadex.common.transformation.IStringConverter converter, jadex.common.transformation.traverser.Traverser.MODE mode, ClassLoader targetcl, jadex.transformation.jsonserializer.processors.JsonWriteContext context) Write an object.- Specified by:
writeObjectin classjadex.transformation.jsonserializer.processors.AbstractJsonProcessor- Parameters:
object- The object.targetcl- If not null, the traverser should make sure that the result object is compatible with the class loader, e.g. by cloning the object using the class loaded from the target class loader.- Returns:
- The processed object.
-