Class ProtostreamTranscoder

All Implemented Interfaces:
Transcoder

public class ProtostreamTranscoder extends OneToManyTranscoder

Performs conversions between application/x-protostream and commons formats.


When converting to application/x-protostream, it will produce payloads with WrappedMessage by default, unless the param wrapped is supplied in the destination MediaType with value false


Converting back to application/x-java-object requires either a payload that is a WrappedMessage or an unwrapped payload plus the type of the java object to convert to, specified using the type parameter in the application/x-java-object MediaType.

Since:
10.0
  • Field Details

    • WRAPPED_PARAM

      public static final String WRAPPED_PARAM
      See Also:
    • logger

      protected static final org.infinispan.util.logging.Log logger
  • Constructor Details

    • ProtostreamTranscoder

      public ProtostreamTranscoder(org.infinispan.marshall.protostream.impl.SerializationContextRegistry ctxRegistry, ClassLoader classLoader)
  • Method Details