abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ant elder <ant.el...@gmail.com>
Subject Re: EntryRequestProcessor and MediaRequestProcessor do not support POST
Date Thu, 12 Aug 2010 05:59:52 GMT
That looks like a bug to me too. Please raise a JIRA for it...and if
you'd like to contribute a fix that would be wonderful.

   ...ant

On Thu, Jul 29, 2010 at 3:51 PM, Reese, Nathan
<nreese@integrity-apps.com> wrote:
> Is there a reason why the EntryRequestProcessor and MediaRequestProcessor processEntry
methods do not handle POST requests?  This seems like a bug to me.  I am using abdera 1.1
release.
>
> String method = context.getMethod();
> if (method.equalsIgnoreCase("GET")) {
>   return adapter.getEntry(context);
> } else if (method.equalsIgnoreCase("PUT")) {
>   return adapter.putEntry(context);
> } else if (method.equalsIgnoreCase("DELETE")) {
>   return adapter.deleteEntry(context);
> } else if (method.equalsIgnoreCase("HEAD")) {
>   return adapter.headEntry(context);
> } else if (method.equalsIgnoreCase("OPTIONS")) {
>   return adapter.optionsEntry(context);
> } else {
>   return null;
> }
>
> Nathan
>

Mime
View raw message