com.sun.jersey.server.impl.template
Class ViewableMessageBodyWriter

java.lang.Object
  extended by com.sun.jersey.server.impl.template.ViewableMessageBodyWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<Viewable>

public final class ViewableMessageBodyWriter
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<Viewable>

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
ViewableMessageBodyWriter()
           
 
Method Summary
 long getSize(Viewable t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 void writeTo(Viewable v, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewableMessageBodyWriter

public ViewableMessageBodyWriter()
Method Detail

isWriteable

public boolean isWriteable(java.lang.Class<?> type,
                           java.lang.reflect.Type genericType,
                           java.lang.annotation.Annotation[] annotations,
                           javax.ws.rs.core.MediaType mediaType)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Viewable>

writeTo

public void writeTo(Viewable v,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
                    java.io.OutputStream entityStream)
             throws java.io.IOException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Viewable>
Throws:
java.io.IOException

getSize

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


Copyright © 2011 Sun Microsystems, Inc. All Rights Reserved.