org.xwiki.annotation.rest.internal.representations
Class AbstractFormUrlEncodedAnnotationUpdateRequestReader<T extends AnnotationUpdateRequest>

java.lang.Object
  extended by org.xwiki.annotation.rest.internal.representations.AbstractFormUrlEncodedAnnotationRequestReader<T>
      extended by org.xwiki.annotation.rest.internal.representations.AbstractFormUrlEncodedAnnotationUpdateRequestReader<T>
Type Parameters:
T - the type read from the url encoded form
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<T>, XWikiRestComponent
Direct Known Subclasses:
FormUrlEncodedAnnotationAddRequestReader, FormUrlEncodedAnnotationUpdateRequestReader

public abstract class AbstractFormUrlEncodedAnnotationUpdateRequestReader<T extends AnnotationUpdateRequest>
extends AbstractFormUrlEncodedAnnotationRequestReader<T>

Partial implementation of a reader that reads an annotation update request, extending the request reader with the read of the annotation fields.

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
AbstractFormUrlEncodedAnnotationUpdateRequestReader()
           
 
Method Summary
protected  boolean saveField(T readObject, java.lang.String key, java.lang.String value, ObjectFactory objectFactory)
          Helper function to save a parameter in the read object.
 
Methods inherited from class org.xwiki.annotation.rest.internal.representations.AbstractFormUrlEncodedAnnotationRequestReader
getReadObjectInstance, readFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ws.rs.ext.MessageBodyReader
isReadable
 

Constructor Detail

AbstractFormUrlEncodedAnnotationUpdateRequestReader

public AbstractFormUrlEncodedAnnotationUpdateRequestReader()
Method Detail

saveField

protected boolean saveField(T readObject,
                            java.lang.String key,
                            java.lang.String value,
                            ObjectFactory objectFactory)
Helper function to save a parameter in the read object. To implement in subclasses to provide type specific behaviour.

Overrides:
saveField in class AbstractFormUrlEncodedAnnotationRequestReader<T extends AnnotationUpdateRequest>
Parameters:
readObject - the request to fill with data
key - the key of the field
value - the value of the field
objectFactory - the objects factory to create the annotation fields
Returns:
true if the field was saved at this level, false otherwise
See Also:
#saveField(org.xwiki.annotation.rest.model.jaxb.AnnotationRequest, java.lang.String, java.lang.String, org.xwiki.annotation.rest.model.jaxb.ObjectFactory)


Copyright © 2004-2011 XWiki. All Rights Reserved.