org.xwiki.rest.internal.representations.pages
Class FormUrlEncodedPageReader

java.lang.Object
  extended by org.xwiki.rest.internal.representations.pages.FormUrlEncodedPageReader
All Implemented Interfaces:
MessageBodyReader<Page>, XWikiRestComponent

@Component(value="org.xwiki.rest.internal.representations.pages.FormUrlEncodedPageReader")
@Provider
public class FormUrlEncodedPageReader
extends Object
implements MessageBodyReader<Page>, XWikiRestComponent


Constructor Summary
FormUrlEncodedPageReader()
           
 
Method Summary
 boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 Page readFrom(Class<Page> type, Type genericType, Annotation[] annotations, MediaType mediaType, 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

FormUrlEncodedPageReader

public FormUrlEncodedPageReader()
Method Detail

isReadable

public boolean isReadable(Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType)
Specified by:
isReadable in interface MessageBodyReader<Page>

readFrom

public Page readFrom(Class<Page> type,
                     Type genericType,
                     Annotation[] annotations,
                     MediaType mediaType,
                     MultivaluedMap<String,String> httpHeaders,
                     InputStream entityStream)
              throws IOException,
                     WebApplicationException
Specified by:
readFrom in interface MessageBodyReader<Page>
Throws:
IOException
WebApplicationException