org.xwiki.rest.representations.comments
Class TextPlainCommentReader

java.lang.Object
  extended by org.xwiki.rest.representations.TextPlainReader<Comment>
      extended by org.xwiki.rest.representations.comments.TextPlainCommentReader
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<Comment>, XWikiRestComponent

@Component(value="org.xwiki.rest.representations.comments.TextPlainCommentReader")
@Provider
public class TextPlainCommentReader
extends TextPlainReader<Comment>

Version:
$Id: TextPlainCommentReader.java 21281 2009-06-13 19:22:09Z sdumitriu $

Constructor Summary
TextPlainCommentReader()
           
 
Method Summary
 boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 Comment readFrom(java.lang.Class<Comment> 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.String> httpHeaders, java.io.InputStream entityStream)
           
 
Methods inherited from class org.xwiki.rest.representations.TextPlainReader
getEntityAsString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextPlainCommentReader

public TextPlainCommentReader()
Method Detail

isReadable

public boolean isReadable(java.lang.Class<?> type,
                          java.lang.reflect.Type genericType,
                          java.lang.annotation.Annotation[] annotations,
                          javax.ws.rs.core.MediaType mediaType)

readFrom

public Comment readFrom(java.lang.Class<Comment> 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.String> httpHeaders,
                        java.io.InputStream entityStream)
                 throws java.io.IOException,
                        javax.ws.rs.WebApplicationException
Throws:
java.io.IOException
javax.ws.rs.WebApplicationException


Copyright © 2004-2009 XWiki. All Rights Reserved.