com.adaptrex.core.ext.rest.provider
Class ModelJsonBodyWriter
java.lang.Object
com.adaptrex.core.ext.rest.provider.ModelJsonBodyWriter
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyWriter<Model>
@Provider
public class ModelJsonBodyWriter
- extends Object
- implements javax.ws.rs.ext.MessageBodyWriter<Model>
|
Method Summary |
long |
getSize(Model model,
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)
|
void |
writeTo(Model model,
Class<?> clazz,
Type type,
Annotation[] annotation,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> map,
OutputStream out)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelJsonBodyWriter
public ModelJsonBodyWriter()
getSize
public long getSize(Model model,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Model>
isWriteable
public boolean isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Model>
writeTo
public void writeTo(Model model,
Class<?> clazz,
Type type,
Annotation[] annotation,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> map,
OutputStream out)
throws IOException,
javax.ws.rs.WebApplicationException
- Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Model>
- Throws:
IOException
javax.ws.rs.WebApplicationException
Copyright © 2012 Adaptrex, LLC. All Rights Reserved.