org.apache.clerezza.jaxrs.rdf.providers
Class GraphReader

java.lang.Object
  extended by org.apache.clerezza.jaxrs.rdf.providers.GraphReader
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<org.apache.clerezza.rdf.core.Graph>

@Provider
public class GraphReader
extends Object
implements javax.ws.rs.ext.MessageBodyReader<org.apache.clerezza.rdf.core.Graph>

Author:
reto

Constructor Summary
GraphReader()
           
 
Method Summary
 boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 org.apache.clerezza.rdf.core.Graph readFrom(Class<org.apache.clerezza.rdf.core.Graph> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphReader

public GraphReader()
Method Detail

isReadable

public boolean isReadable(Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          javax.ws.rs.core.MediaType mediaType)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<org.apache.clerezza.rdf.core.Graph>

readFrom

public org.apache.clerezza.rdf.core.Graph readFrom(Class<org.apache.clerezza.rdf.core.Graph> type,
                                                   Type genericType,
                                                   Annotation[] annotations,
                                                   javax.ws.rs.core.MediaType mediaType,
                                                   javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
                                                   InputStream entityStream)
                                            throws IOException,
                                                   javax.ws.rs.WebApplicationException
Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader<org.apache.clerezza.rdf.core.Graph>
Throws:
IOException
javax.ws.rs.WebApplicationException


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