@Provider public class FastJsonEncoder extends Encoder implements javax.ws.rs.ext.MessageBodyWriter
Constructor and Description |
---|
FastJsonEncoder() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<org.restlet.data.MediaType> |
createSupportedMediaTypes()
${services_rest_encoders_Encoder_method_createSupportedMediaTypes_Title}
|
long |
getSize(java.lang.Object arg0, java.lang.Class arg1, java.lang.reflect.Type arg2, java.lang.annotation.Annotation[] arg3, javax.ws.rs.core.MediaType arg4) |
boolean |
isWriteable(java.lang.Class arg0, java.lang.reflect.Type arg1, java.lang.annotation.Annotation[] arg2, javax.ws.rs.core.MediaType arg3) |
Representation |
toRepresentation(org.restlet.data.MediaType mediaType, java.lang.Object obj)
${services_rest_encoders_Encoder_method_toRepresentation_Title}
|
void |
writeTo(java.lang.Object o, java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap httpHeaders, java.io.OutputStream entityStream) |
getSupportedMediaTypes, isEncodeAllow
public long getSize(java.lang.Object arg0, java.lang.Class arg1, java.lang.reflect.Type arg2, java.lang.annotation.Annotation[] arg3, javax.ws.rs.core.MediaType arg4)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter
public boolean isWriteable(java.lang.Class arg0, java.lang.reflect.Type arg1, java.lang.annotation.Annotation[] arg2, javax.ws.rs.core.MediaType arg3)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter
protected java.util.List<org.restlet.data.MediaType> createSupportedMediaTypes()
Encoder
${services_rest_encoders_Encoder_method_createSupportedMediaTypes_Title}
${services_rest_encoders_Encoder_method_createSupportedMediaTypes_Description}
createSupportedMediaTypes
in class Encoder
public Representation toRepresentation(org.restlet.data.MediaType mediaType, java.lang.Object obj)
Encoder
${services_rest_encoders_Encoder_method_toRepresentation_Title}
${services_rest_encoders_Encoder_method_toRepresentation_Description}
toRepresentation
in class Encoder
mediaType
- ${services_rest_encoders_Encoder_method_toRepresentation_param_mediaType}obj
- ${services_rest_encoders_Encoder_method_toRepresentation_param_obj}public void writeTo(java.lang.Object o, java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap httpHeaders, java.io.OutputStream entityStream) throws java.io.IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter
java.io.IOException
javax.ws.rs.WebApplicationException