public abstract class Encoder
extends java.lang.Object
${services_rest_encoders_Encoder_Title}
${services_rest_encoders_Encoder_Description}
Constructor and Description |
---|
Encoder()
${services_rest_encoders_Encoder_constructor_Encoder_Title}
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.List<MediaType> |
createSupportedMediaTypes()
${services_rest_encoders_Encoder_method_createSupportedMediaTypes_Title}
|
java.util.List<MediaType> |
getSupportedMediaTypes()
${services_rest_encoders_Encoder_method_getSupportedMediaTypes_Title}
|
boolean |
isEncodeAllow(MediaType mediaType)
Determines whether the Encoder object matches the specified media type, that is, whether the Java object can be converted to a specified type of expression.
|
abstract Representation |
toRepresentation(MediaType mediaType, java.lang.Object obj)
${services_rest_encoders_Encoder_method_toRepresentation_Title}
|
public Encoder()
${services_rest_encoders_Encoder_constructor_Encoder_Title}
${services_rest_encoders_Encoder_constructor_Encoder_Description}
public java.util.List<MediaType> getSupportedMediaTypes()
${services_rest_encoders_Encoder_method_getSupportedMediaTypes_Title}
${services_rest_encoders_Encoder_method_getSupportedMediaTypes_Description}
public boolean isEncodeAllow(MediaType mediaType)
Determines whether the Encoder object matches the specified media type, that is, whether the Java object can be converted to a specified type of expression.
${services_rest_encoders_Encoder_method_isEncodeAllow_Description}
mediaType
- The type of media, that is, the type of expression.protected abstract java.util.List<MediaType> createSupportedMediaTypes()
${services_rest_encoders_Encoder_method_createSupportedMediaTypes_Title}
${services_rest_encoders_Encoder_method_createSupportedMediaTypes_Description}
public abstract Representation toRepresentation(MediaType mediaType, java.lang.Object obj)
${services_rest_encoders_Encoder_method_toRepresentation_Title}
${services_rest_encoders_Encoder_method_toRepresentation_Description}
mediaType
- ${services_rest_encoders_Encoder_method_toRepresentation_param_mediaType}obj
- ${services_rest_encoders_Encoder_method_toRepresentation_param_obj}