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

java.lang.Object
  extended by org.apache.stanbol.contenthub.web.writers.SearchResultWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<org.apache.stanbol.contenthub.servicesapi.search.featured.SearchResult>

@Provider
public class SearchResultWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<org.apache.stanbol.contenthub.servicesapi.search.featured.SearchResult>

Author:
anil.sinaci

Constructor Summary
SearchResultWriter()
           
 
Method Summary
 long getSize(org.apache.stanbol.contenthub.servicesapi.search.featured.SearchResult t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 void writeTo(org.apache.stanbol.contenthub.servicesapi.search.featured.SearchResult t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResultWriter

public SearchResultWriter()
Method Detail

isWriteable

public boolean isWriteable(Class<?> type,
                           Type genericType,
                           Annotation[] annotations,
                           javax.ws.rs.core.MediaType mediaType)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.stanbol.contenthub.servicesapi.search.featured.SearchResult>

getSize

public long getSize(org.apache.stanbol.contenthub.servicesapi.search.featured.SearchResult t,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.stanbol.contenthub.servicesapi.search.featured.SearchResult>

writeTo

public void writeTo(org.apache.stanbol.contenthub.servicesapi.search.featured.SearchResult t,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
                    OutputStream entityStream)
             throws IOException,
                    javax.ws.rs.WebApplicationException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.stanbol.contenthub.servicesapi.search.featured.SearchResult>
Throws:
IOException
javax.ws.rs.WebApplicationException


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