at.ac.tuwien.infosys.sm4all.copal.rest.provider
Class XMLRESTPublisherReader

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.rest.provider.XMLRESTPublisherReader
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<RESTPublisher>

@Provider
public class XMLRESTPublisherReader
extends Object
implements javax.ws.rs.ext.MessageBodyReader<RESTPublisher>

A MessageBodyReader that transforms an application/xml InputStream into RESTPublisher.

Author:
sanjin

Constructor Summary
XMLRESTPublisherReader()
          Creates an instance of application/xml RESTPublisher MessageBodyReader.
 
Method Summary
 boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 RESTPublisher readFrom(Class<RESTPublisher> 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

XMLRESTPublisherReader

public XMLRESTPublisherReader()
Creates an instance of application/xml RESTPublisher MessageBodyReader.

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<RESTPublisher>

readFrom

public RESTPublisher readFrom(Class<RESTPublisher> 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<RESTPublisher>
Throws:
IOException
javax.ws.rs.WebApplicationException


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.