Class BinaryResponseProcessor

java.lang.Object
jadex.binary.AbstractCodec
jadex.publishservice.publish.binary.BinaryResponseProcessor
All Implemented Interfaces:
jadex.binary.IDecoderHandler, jadex.common.transformation.traverser.ITraverseProcessor

public class BinaryResponseProcessor extends jadex.binary.AbstractCodec
Codec for encoding and decoding response objects.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected jadex.common.transformation.traverser.IBeanIntrospector
    Bean introspector for inspecting beans.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createObject(Class<?> clazz, jadex.binary.IDecodingContext context)
    Creates the object during decoding.
    encode(Object object, Class<?> clazz, List<jadex.common.transformation.traverser.ITraverseProcessor> preprocessors, List<jadex.common.transformation.traverser.ITraverseProcessor> processors, jadex.common.transformation.IStringConverter converter, jadex.common.transformation.traverser.Traverser.MODE mode, jadex.common.transformation.traverser.Traverser traverser, ClassLoader targetcl, jadex.binary.IEncodingContext ec)
    Encode the object.
    boolean
    isApplicable(Class<?> clazz)
    Tests if the decoder can decode the class.
    boolean
    isApplicable(Object object, Class<?> clazz, boolean clone, ClassLoader targetcl)
    Test if the processor is applicable.

    Methods inherited from class jadex.binary.AbstractCodec

    canReference, decode, decodeSubObjects, isApplicable, isFixedFrame, process, recordKnownDecodedObject

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • intro

      protected jadex.common.transformation.traverser.IBeanIntrospector intro
      Bean introspector for inspecting beans.
  • Constructor Details

    • BinaryResponseProcessor

      public BinaryResponseProcessor()
  • Method Details

    • isApplicable

      public boolean isApplicable(Class<?> clazz)
      Tests if the decoder can decode the class.
      Specified by:
      isApplicable in interface jadex.binary.IDecoderHandler
      Specified by:
      isApplicable in class jadex.binary.AbstractCodec
      Parameters:
      clazz - The class.
      Returns:
      True, if the decoder can decode this class.
    • createObject

      public Object createObject(Class<?> clazz, jadex.binary.IDecodingContext context)
      Creates the object during decoding.
      Specified by:
      createObject in class jadex.binary.AbstractCodec
      Parameters:
      clazz - The class of the object.
      context - The decoding context.
      Returns:
      The created object.
    • isApplicable

      public boolean isApplicable(Object object, Class<?> clazz, boolean clone, ClassLoader targetcl)
      Test if the processor is applicable.
      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.
    • encode

      public Object encode(Object object, Class<?> clazz, List<jadex.common.transformation.traverser.ITraverseProcessor> preprocessors, List<jadex.common.transformation.traverser.ITraverseProcessor> processors, jadex.common.transformation.IStringConverter converter, jadex.common.transformation.traverser.Traverser.MODE mode, jadex.common.transformation.traverser.Traverser traverser, ClassLoader targetcl, jadex.binary.IEncodingContext ec)
      Encode the object.
      Specified by:
      encode in class jadex.binary.AbstractCodec