@Provider public class XMLDecoder extends Decoder implements javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
${services_rest_decoders_XMLDecoder_Title}
${services_rest_decoders_XMLDecoder_Description}
Constructor and Description |
---|
XMLDecoder()
${services_rest_decoders_XMLDecoder_constructor_XMLDecoder_Title}
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<MediaType> |
createSupportedMediaTypes()
${services_rest_decoders_XMLDecoder_method_createSupportedMediaTypes_Title}
|
boolean |
isReadable(java.lang.Class<?> paramClass, java.lang.reflect.Type paramType, java.lang.annotation.Annotation[] paramArrayOfAnnotation, javax.ws.rs.core.MediaType paramMediaType) |
java.lang.Object |
readFrom(java.lang.Class<java.lang.Object> paramClass, java.lang.reflect.Type paramType, java.lang.annotation.Annotation[] paramArrayOfAnnotation, javax.ws.rs.core.MediaType paramMediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> paramMultivaluedMap, java.io.InputStream paramInputStream) |
<T> java.util.List<T> |
toList(java.lang.String text, java.lang.Class<T> elementClass)
${services_rest_decoders_XMLDecoder_method_toList_Title}
|
java.util.Map<java.lang.String,java.lang.Object> |
toMap(java.lang.String str, java.util.Map<java.lang.String,java.lang.Class> nameClassMapping)
${services_rest_decoders_XMLDecoder_method_toMap_Title}
|
<T> T |
toObject(java.lang.String xmlDoc, java.lang.Class<T> cl)
${services_rest_decoders_XMLDecoder_method_toObject_Title}
|
java.util.Set |
toSet(java.lang.String text, java.lang.Class elementClass)
${services_rest_decoders_XMLDecoder_method_toSet_Title}
|
getSupportedMediaTypes, isDecoderAllow
public XMLDecoder()
${services_rest_decoders_XMLDecoder_constructor_XMLDecoder_Title}
${services_rest_decoders_XMLDecoder_constructor_XMLDecoder_Description}
public <T> T toObject(java.lang.String xmlDoc, java.lang.Class<T> cl)
${services_rest_decoders_XMLDecoder_method_toObject_Title}
${services_rest_decoders_XMLDecoder_method_toObject_Description}
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)
${services_rest_decoders_XMLDecoder_method_toMap_Title}
${services_rest_decoders_XMLDecoder_method_toMap_Description}
public <T> java.util.List<T> toList(java.lang.String text, java.lang.Class<T> elementClass) throws java.lang.Exception
${services_rest_decoders_XMLDecoder_method_toList_Title}
${services_rest_decoders_XMLDecoder_method_toList_Description}
toList
in class Decoder
text
- ${services_rest_decoders_XMLDecoder_method_toList_param_text}elementClass
- ${services_rest_decoders_XMLDecoder_method_toList_param_ElementClass}java.lang.Exception
- ${services_rest_decoders_XMLDecoder_method_toList_throws_Exception}public java.util.Set toSet(java.lang.String text, java.lang.Class elementClass) throws java.lang.Exception
${services_rest_decoders_XMLDecoder_method_toSet_Title}
${services_rest_decoders_XMLDecoder_method_toSet_Description}
toSet
in class Decoder
text
- ${services_rest_decoders_XMLDecoder_method_toSet_param_text}elementClass
- ${services_rest_decoders_XMLDecoder_method_toSet_param_ElementClass}java.lang.Exception
- ${services_rest_decoders_XMLDecoder_method_toSet_throws_Exception}protected java.util.List<MediaType> createSupportedMediaTypes()
${services_rest_decoders_XMLDecoder_method_createSupportedMediaTypes_Title}
${services_rest_decoders_XMLDecoder_method_createSupportedMediaTypes_Description}
createSupportedMediaTypes
in class Decoder
public boolean isReadable(java.lang.Class<?> paramClass, java.lang.reflect.Type paramType, java.lang.annotation.Annotation[] paramArrayOfAnnotation, javax.ws.rs.core.MediaType paramMediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
public java.lang.Object readFrom(java.lang.Class<java.lang.Object> paramClass, java.lang.reflect.Type paramType, java.lang.annotation.Annotation[] paramArrayOfAnnotation, javax.ws.rs.core.MediaType paramMediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> paramMultivaluedMap, java.io.InputStream paramInputStream) throws java.io.IOException
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
java.io.IOException