org.xwiki.annotation.rest.internal.representations
Class FormUrlEncodedAnnotationRequestReader

java.lang.Object
  extended by org.xwiki.annotation.rest.internal.representations.AbstractFormUrlEncodedAnnotationRequestReader<AnnotationRequest>
      extended by org.xwiki.annotation.rest.internal.representations.FormUrlEncodedAnnotationRequestReader
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<AnnotationRequest>, XWikiRestComponent

@Component(value="org.xwiki.annotation.rest.internal.representations.FormUrlEncodedAnnotationRequestReader")
@Provider
public class FormUrlEncodedAnnotationRequestReader
extends AbstractFormUrlEncodedAnnotationRequestReader<AnnotationRequest>

Since:
2.3M1
Version:
$Id$

Field Summary
 
Fields inherited from class org.xwiki.annotation.rest.internal.representations.AbstractFormUrlEncodedAnnotationRequestReader
FILTER_FIELD_PREFIX, REQUESTED_FIELD
 
Constructor Summary
FormUrlEncodedAnnotationRequestReader()
           
 
Method Summary
protected  AnnotationRequest getReadObjectInstance(ObjectFactory factory)
          Helper function to provide an instance of the read object from the object factory.
 boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
          
 
Methods inherited from class org.xwiki.annotation.rest.internal.representations.AbstractFormUrlEncodedAnnotationRequestReader
readFrom, saveField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormUrlEncodedAnnotationRequestReader

public FormUrlEncodedAnnotationRequestReader()
Method Detail

getReadObjectInstance

protected AnnotationRequest getReadObjectInstance(ObjectFactory factory)
Helper function to provide an instance of the read object from the object factory.

Specified by:
getReadObjectInstance in class AbstractFormUrlEncodedAnnotationRequestReader<AnnotationRequest>
Parameters:
factory - the object factory
Returns:
an instance of the read type T, as built by the object factory.
See Also:
#getReadObjectInstance(org.xwiki.annotation.rest.model.jaxb.ObjectFactory)

isReadable

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

See Also:
MessageBodyReader.isReadable(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType)


Copyright © 2004-2011 XWiki. All Rights Reserved.