com.adaptrex.core.ext.rest.provider
Class StoreJsonBodyWriter

java.lang.Object
  extended by com.adaptrex.core.ext.rest.provider.StoreJsonBodyWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<Store>

@Provider
public class StoreJsonBodyWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<Store>


Constructor Summary
StoreJsonBodyWriter()
           
 
Method Summary
 long getSize(Store store, 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(Store store, 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
 

Constructor Detail

StoreJsonBodyWriter

public StoreJsonBodyWriter()
Method Detail

getSize

public long getSize(Store store,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Store>

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<Store>

writeTo

public void writeTo(Store store,
                    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<Store>
Throws:
IOException
javax.ws.rs.WebApplicationException


Copyright © 2012 Adaptrex, LLC. All Rights Reserved.