public class ObjectStreamDecoder extends Decoder
Java object stream decoder.
Converts a binary Java data stream to a Java object.
Constructor and Description |
---|
ObjectStreamDecoder() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<MediaType> |
createSupportedMediaTypes()
Creates a list of supported media types.
|
java.util.List |
toList(java.lang.String text, java.lang.Class elementClass)
Converts a binary stream string to a list object.
|
java.util.Map<java.lang.String,java.lang.Object> |
toMap(java.lang.String str, java.util.Map<java.lang.String,java.lang.Class> nameClassMapping)
Converts a binary stream string to a map set.
|
java.lang.Object |
toObject(java.lang.String str, java.lang.Class cl)
Converts a binary stream string to a Java object.
|
java.util.Set |
toSet(java.lang.String text, java.lang.Class elementClass)
Converts a binary stream string to a
Set object. |
getSupportedMediaTypes, isDecoderAllow
public java.lang.Object toObject(java.lang.String str, java.lang.Class cl)
Converts a binary stream string to a Java object.
public java.util.Map<java.lang.String,java.lang.Object> toMap(java.lang.String str, java.util.Map<java.lang.String,java.lang.Class> nameClassMapping)
Converts a binary stream string to a map set.
public java.util.List toList(java.lang.String text, java.lang.Class elementClass) throws java.lang.Exception
Converts a binary stream string to a list object.
public java.util.Set toSet(java.lang.String text, java.lang.Class elementClass) throws java.lang.Exception
Converts a binary stream string to a Set
object.
protected java.util.List<MediaType> createSupportedMediaTypes()
Creates a list of supported media types.
That is, when the request is one of the media types, by the decoder to identify and convert.
createSupportedMediaTypes
in class Decoder