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.
| Modifier and Type | Field and Description |
|---|---|
protected static Log |
logger |
static String |
WRAPPED_PARAM |
mainType, supportedTypes| Constructor and Description |
|---|
ProtostreamTranscoder(SerializationContextRegistry ctxRegistry,
ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
Object |
transcode(Object content,
MediaType contentType,
MediaType destinationType)
Transcodes content between two different
MediaType. |
getSupportedMediaTypes, supportsConversionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportspublic static final String WRAPPED_PARAM
protected static final Log logger
public ProtostreamTranscoder(SerializationContextRegistry ctxRegistry, ClassLoader classLoader)
Copyright © 2022 JBoss by Red Hat. All rights reserved.