javax.ws.rs.ext
Interface MessageBodyWriter<T>


public interface MessageBodyWriter<T>


Method Summary
 long getSize(T t, Class<?> rawType, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean isWriteable(Class<?> rawType, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 void writeTo(T t, Class<?> rawType, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 

Method Detail

getSize

long getSize(T t,
             Class<?> rawType,
             Type genericType,
             Annotation[] annotations,
             MediaType mediaType)

isWriteable

boolean isWriteable(Class<?> rawType,
                    Type genericType,
                    Annotation[] annotations,
                    MediaType mediaType)

writeTo

void writeTo(T t,
             Class<?> rawType,
             Type genericType,
             Annotation[] annotations,
             MediaType mediaType,
             MultivaluedMap<String,Object> httpHeaders,
             OutputStream entityStream)
             throws IOException
Throws:
IOException


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.