org.atmosphere.gwt20.jersey
Class GwtRpcWriter

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

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

Author:
p.havelaar

Constructor Summary
GwtRpcWriter()
           
 
Method Summary
 long getSize(java.lang.Object t, java.lang.Class<?> type, java.lang.reflect.Type type1, java.lang.annotation.Annotation[] antns, javax.ws.rs.core.MediaType mt)
           
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type type1, java.lang.annotation.Annotation[] antns, javax.ws.rs.core.MediaType mt)
           
 void writeTo(java.lang.Object t, java.lang.Class<?> type, java.lang.reflect.Type type1, java.lang.annotation.Annotation[] antns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers, java.io.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(java.lang.Class<?> type,
                           java.lang.reflect.Type type1,
                           java.lang.annotation.Annotation[] antns,
                           javax.ws.rs.core.MediaType mt)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>

getSize

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

writeTo

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


Copyright © 2014. All Rights Reserved.