org.apache.stanbol.contenthub.web.writers
Class LDProgramCollectionWriter

java.lang.Object
  extended by org.apache.stanbol.contenthub.web.writers.LDProgramCollectionWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<LDProgramCollection>

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

Author:
anil.sinaci

Constructor Summary
LDProgramCollectionWriter()
           
 
Method Summary
 long getSize(LDProgramCollection 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(LDProgramCollection t, 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

LDProgramCollectionWriter

public LDProgramCollectionWriter()
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<LDProgramCollection>

getSize

public long getSize(LDProgramCollection 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<LDProgramCollection>

writeTo

public void writeTo(LDProgramCollection t,
                    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,
                    javax.ws.rs.WebApplicationException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<LDProgramCollection>
Throws:
java.io.IOException
javax.ws.rs.WebApplicationException


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