org.xwiki.rest.representations.pages
Class TextPlainPageReader

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

@Component(value="org.xwiki.rest.representations.pages.TextPlainPageReader")
@Provider
public class TextPlainPageReader
extends TextPlainReader<Page>

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

Constructor Summary
TextPlainPageReader()
           
 
Method Summary
 boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 Page readFrom(java.lang.Class<Page> 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

TextPlainPageReader

public TextPlainPageReader()
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 Page readFrom(java.lang.Class<Page> 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.