FIXED the error by doing this:
It seems my annotations aren't being picked for some reason so in the
constructor for my resource handler I have added this code.
// Declare the kind of representations supported by this resource.
final Set<Method> allowedMethods = new HashSet<Method>();
allowedMethods.add(Method.POST);
getVariants().add(new Variant(MediaType.TEXT_XML));
setAnnotated(true);
setNegotiated(false);
setAllowedMethods(allowedMethods);
I have then overriden the post method and redirected to the annotated one as
follows:
@Override
public Representation post(final Representation entity)
{
return annotatedPost(entity);
}
@Post
public Representation annotatedPost(final Representation entity) throws
ResourceException
{
// do posty stuff
}
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2681339