public abstract class Decoder
extends java.lang.Object
${services_rest_decoders_Decoder_Title}
${services_rest_decoders_Decoder_Description}
| Constructor and Description | 
|---|
| Decoder()${services_rest_decoders_Decoder_constructor_Decoder_Title} | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract java.util.List<MediaType> | createSupportedMediaTypes()${services_rest_decoders_Decoder_method_createSupportedMediaTypes_Title} | 
| java.util.List<MediaType> | getSupportedMediaTypes()Creates a list of media types supported by this parser. | 
| boolean | isDecoderAllow(MediaType acceptedMediaType)${services_rest_decoders_Decoder_method_isDecoderAllow_Title} | 
| abstract <T> java.util.List<T> | toList(java.lang.String text, java.lang.Class<T> elementClass)Converts the parameter string to a java.util.List object of the specified element type. | 
| abstract 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 the parameter string to the specified type of java.util.Map mapping set. | 
| abstract <T> T | toObject(java.lang.String jsonStr, java.lang.Class<T> cl)Converts a parameter string to a specified type of Java object. | 
| abstract java.util.Set | toSet(java.lang.String text, java.lang.Class elementClass)Converts the parameter string to a java.util.Set object of the specified element type. | 
public Decoder()
${services_rest_decoders_Decoder_constructor_Decoder_Title}
${services_rest_decoders_Decoder_constructor_Decoder_Description}
public java.util.List<MediaType> getSupportedMediaTypes()
Creates a list of media types supported by this parser. That is, what type of parameters can be specified.
${services_rest_decoders_Decoder_method_getSupportedMediaTypes_Description}
public boolean isDecoderAllow(MediaType acceptedMediaType)
${services_rest_decoders_Decoder_method_isDecoderAllow_Title}
${services_rest_decoders_Decoder_method_isDecoderAllow_Description}
acceptedMediaType - ${services_rest_decoders_Decoder_method_isDecoderAllow_param_acceptedMediaType}
public abstract <T> T toObject(java.lang.String jsonStr,
             java.lang.Class<T> cl)
                    throws java.lang.Exception
Converts a parameter string to a specified type of Java object.
${services_rest_decoders_Decoder_method_toObject_Description}
jsonStr - ${services_rest_decoders_Decoder_method_toObject_param_jsonStr}cl - ${services_rest_decoders_Decoder_method_toObject_param_cl}java.lang.Exception - ${services_rest_decoders_Decoder_method_toObject_throws_Exception}
public abstract 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 the parameter string to the specified type of java.util.Map mapping set.
${services_rest_decoders_Decoder_method_toMap_Description}
str - wants to convert the parameter string.nameClassMapping - java.util.Map Mapping set. Where the key is the field name and the value is the type of the field.
public abstract <T> java.util.List<T> toList(java.lang.String text,
                           java.lang.Class<T> elementClass)
                                  throws java.lang.Exception
text - wants to convert the parameter string.elementClass - List specifies target element type.java.lang.Exception - An error has occurred in the decoding process, throwing a java.lang.Exception exception. For example, if the incoming string is not enough to build a Java object, or if the request is not met, an exception is thrown.
public abstract java.util.Set toSet(java.lang.String text,
                  java.lang.Class elementClass)
                             throws java.lang.Exception
text - wants to convert the parameter string.elementClass - Set specifies target element type.java.lang.Exception - An error has occurred in the decoding process, throwing a java.lang.Exception exception. For example, if the incoming string is not enough to build a Java object, or if the request is not met, an exception is thrown.protected abstract java.util.List<MediaType> createSupportedMediaTypes()
${services_rest_decoders_Decoder_method_createSupportedMediaTypes_Title}
${services_rest_decoders_Decoder_method_createSupportedMediaTypes_Description}