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

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

@Component(value="org.xwiki.annotation.rest.internal.representations.FormUrlEncodedAnnotationUpdateRequestReader")
@Provider
public class FormUrlEncodedAnnotationUpdateRequestReader
extends AbstractFormUrlEncodedAnnotationUpdateRequestReader<AnnotationUpdateRequest>

Implementation of the form url encoded reader for the annotation update requests.

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
FormUrlEncodedAnnotationUpdateRequestReader()
           
 
Method Summary
protected  AnnotationUpdateRequest 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.AbstractFormUrlEncodedAnnotationUpdateRequestReader
saveField
 
Methods inherited from class org.xwiki.annotation.rest.internal.representations.AbstractFormUrlEncodedAnnotationRequestReader
readFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormUrlEncodedAnnotationUpdateRequestReader

public FormUrlEncodedAnnotationUpdateRequestReader()
Method Detail

getReadObjectInstance

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

Specified by:
getReadObjectInstance in class AbstractFormUrlEncodedAnnotationRequestReader<AnnotationUpdateRequest>
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.