org.atmosphere.gwt20.jersey
Class GwtRpcWriter

java.lang.Object
  extended by org.atmosphere.gwt20.jersey.GwtRpcWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<Object>

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

Author:
p.havelaar

Constructor Summary
GwtRpcWriter()
           
 
Method Summary
 long getSize(Object t, Class<?> type, Type type1, Annotation[] antns, javax.ws.rs.core.MediaType mt)
           
 boolean isWriteable(Class<?> type, Type type1, Annotation[] antns, javax.ws.rs.core.MediaType mt)
           
 void writeTo(Object t, Class<?> type, Type type1, Annotation[] antns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GwtRpcWriter

public GwtRpcWriter()
Method Detail

isWriteable

public boolean isWriteable(Class<?> type,
                           Type type1,
                           Annotation[] antns,
                           javax.ws.rs.core.MediaType mt)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Object>

getSize

public long getSize(Object t,
                    Class<?> type,
                    Type type1,
                    Annotation[] antns,
                    javax.ws.rs.core.MediaType mt)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Object>

writeTo

public void writeTo(Object t,
                    Class<?> type,
                    Type type1,
                    Annotation[] antns,
                    javax.ws.rs.core.MediaType mt,
                    javax.ws.rs.core.MultivaluedMap<String,Object> headers,
                    OutputStream out)
             throws IOException,
                    javax.ws.rs.WebApplicationException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Object>
Throws:
IOException
javax.ws.rs.WebApplicationException


Copyright © 2015. All Rights Reserved.