@Provider public class FastJsonDecoder extends Decoder implements javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
| Constructor and Description | 
|---|
| FastJsonDecoder() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected java.util.List<org.restlet.data.MediaType> | createSupportedMediaTypes()${services_rest_decoders_Decoder_method_createSupportedMediaTypes_Title} | 
| boolean | isReadable(java.lang.Class<?> arg0, java.lang.reflect.Type arg1, java.lang.annotation.Annotation[] arg2, javax.ws.rs.core.MediaType arg3) | 
| java.lang.Object | readFrom(java.lang.Class<java.lang.Object> arg0, java.lang.reflect.Type arg1, java.lang.annotation.Annotation[] arg2, javax.ws.rs.core.MediaType arg3, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> arg4, java.io.InputStream arg5) | 
| <T> java.util.List<T> | toList(java.lang.String fastjson, java.lang.Class<T> elementClass)Converts the parameter string to a java.util.List object of the specified element type. | 
| java.util.Map<java.lang.String,java.lang.Object> | toMap(java.lang.String fastjson, java.util.Map<java.lang.String,java.lang.Class> nameClassMapping)Converts the parameter string to the specified type of java.util.Map mapping set. | 
| <T> T | toObject(java.lang.String fastjson, java.lang.Class<T> type)Converts a parameter string to a specified type of Java object. | 
| java.util.Set | toSet(java.lang.String fastjson, java.lang.Class elementClass)Converts the parameter string to a java.util.Set object of the specified element type. | 
getSupportedMediaTypes, isDecoderAllow
public boolean isReadable(java.lang.Class<?> arg0,
                 java.lang.reflect.Type arg1,
                 java.lang.annotation.Annotation[] arg2,
                 javax.ws.rs.core.MediaType arg3)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
public java.lang.Object readFrom(java.lang.Class<java.lang.Object> arg0,
                        java.lang.reflect.Type arg1,
                        java.lang.annotation.Annotation[] arg2,
                        javax.ws.rs.core.MediaType arg3,
                        javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> arg4,
                        java.io.InputStream arg5)
                          throws java.io.IOException,
                                 javax.ws.rs.WebApplicationException
readFrom in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>java.io.IOExceptionjavax.ws.rs.WebApplicationException
public <T> T toObject(java.lang.String fastjson,
             java.lang.Class<T> type)
           throws java.lang.Exception
DecoderConverts a parameter string to a specified type of Java object.
${services_rest_decoders_Decoder_method_toObject_Description}
toObject in class Decoderfastjson - ${services_rest_decoders_Decoder_method_toObject_param_jsonStr}type - ${services_rest_decoders_Decoder_method_toObject_param_cl}java.lang.Exception - ${services_rest_decoders_Decoder_method_toObject_throws_Exception}
public java.util.Map<java.lang.String,java.lang.Object> toMap(java.lang.String fastjson,
                                                     java.util.Map<java.lang.String,java.lang.Class> nameClassMapping)
DecoderConverts the parameter string to the specified type of java.util.Map mapping set.
${services_rest_decoders_Decoder_method_toMap_Description}
toMap in class Decoderfastjson - 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 <T> java.util.List<T> toList(java.lang.String fastjson,
                           java.lang.Class<T> elementClass)
                         throws java.lang.Exception
DecodertoList in class Decoderfastjson - 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 java.util.Set toSet(java.lang.String fastjson,
                  java.lang.Class elementClass)
                    throws java.lang.Exception
DecodertoSet in class Decoderfastjson - 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 java.util.List<org.restlet.data.MediaType> createSupportedMediaTypes()
Decoder${services_rest_decoders_Decoder_method_createSupportedMediaTypes_Title}
${services_rest_decoders_Decoder_method_createSupportedMediaTypes_Description}
createSupportedMediaTypes in class Decoder