@Provider @Consumes(value="application/json") @Produces(value="application/json") public class ArrayDataJSONHandler extends Object implements javax.ws.rs.ext.MessageBodyWriter<ArrayList<IDataTransferModel>>, javax.ws.rs.ext.MessageBodyReader<ArrayList<IDataTransferModel>>
Constructor and Description |
---|
ArrayDataJSONHandler() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(ArrayList<IDataTransferModel> iDataTransferModels,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
ArrayList<IDataTransferModel> |
readFrom(Class<ArrayList<IDataTransferModel>> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
writeTo(ArrayList<IDataTransferModel> data,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<ArrayList<IDataTransferModel>>
public ArrayList<IDataTransferModel> readFrom(Class<ArrayList<IDataTransferModel>> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<ArrayList<IDataTransferModel>>
IOException
javax.ws.rs.WebApplicationException
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<ArrayList<IDataTransferModel>>
public long getSize(ArrayList<IDataTransferModel> iDataTransferModels, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<ArrayList<IDataTransferModel>>
public void writeTo(ArrayList<IDataTransferModel> data, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<ArrayList<IDataTransferModel>>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2017. All rights reserved.