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

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

@ConstrainedTo(value=com.sun.jersey.spi.inject.ServerSide.class)
public final class ViewableMessageBodyWriter
extends java.lang.Object
implements 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, MediaType mediaType)
           
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
           
 void writeTo(Viewable v, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, 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,
                           MediaType mediaType)
Specified by:
isWriteable in interface MessageBodyWriter<Viewable>

writeTo

public void writeTo(Viewable v,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    MediaType mediaType,
                    MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
                    java.io.OutputStream entityStream)
             throws java.io.IOException
Specified by:
writeTo in interface 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,
                    MediaType mediaType)
Specified by:
getSize in interface MessageBodyWriter<Viewable>


Copyright © 2014 Oracle Corporation. All Rights Reserved.