You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by Garrett Rooney <ro...@electricjellyfish.net> on 2006/10/25 03:48:52 UTC

Thoughts on the Server Side API

So, I'm thinking about how to integrate the Abdera server code into a
web app I've been playing with, and so far I've been hit by the
following thoughts.

It's unfortunate that we don't have a way (or, if we do have a way we
don't have an example) of how to use the server code without routing
stuff through AbderaServlet.  Lots of web app frameworks have you
route requests through a single top level servlet.  It would be nice
if we could integrate with them wihtout people having to add this
whole separate servlet bolted on the side of their app to handle the
atom publishing protocol stuff.

It seems weird that we essentially require parsing of the request URI
twice, once in the Resolver to figure out what type of target a given
request is for, and then later on in the Provider methods when you
have to figure out what any given request is actually doing.  It'd be
nice if those two could be consolidated somehow, maybe allow a regex
based resolver to make a note of what one hit and what captures
occurred, so you can use that info later on?

Also, for people who have used this stuff to build existing APP
applications, how are you doing it?  Are you using AbderaServlet to
handle all APP type traffic?  Using a custom servlet to do the same
job as part of your application?

-garrett

Re: Thoughts on the Server Side API

Posted by Michael Wechner <mi...@wyona.com>.
Garrett Rooney wrote:

>
>
> Also, for people who have used this stuff to build existing APP
> applications, how are you doing it?  Are you using AbderaServlet to
> handle all APP type traffic?  Using a custom servlet to do the same
> job as part of your application?



I am using Yanel (http://yanel.wyona.org) on the server side, whereas 
Yanel is using the Abdera libs and Yulup (http://www.yulup.org) on the 
client side.

You can give it a try at http://demo.yulup.org/atom/entries/ whereas you 
have to installa Yulup first.

The code is all open source and might help you.

HTH

Michi

>
> -garrett
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org
+41 44 272 91 61


Re: Thoughts on the Server Side API

Posted by James M Snell <ja...@gmail.com>.
I've never been happy with the server code and I haven't had the chance
to really give it the time and energy it needs to shore it up.

Garrett Rooney wrote:
> [snip]
> It's unfortunate that we don't have a way (or, if we do have a way we
> don't have an example) of how to use the server code without routing
> stuff through AbderaServlet.  Lots of web app frameworks have you
> route requests through a single top level servlet.  It would be nice
> if we could integrate with them wihtout people having to add this
> whole separate servlet bolted on the side of their app to handle the
> atom publishing protocol stuff.
> 

So far the three different implementations I've created based on the
various iterations of this code have all used AbderaServlet.  I'm fine
with putting together some code that doesn't require using AbderaServlet
but APP has a number of fairly specific HTTP-level requirements that can
 be difficult to get right.  More research is definitely necessary.

> It seems weird that we essentially require parsing of the request URI
> twice, once in the Resolver to figure out what type of target a given
> request is for, and then later on in the Provider methods when you
> have to figure out what any given request is actually doing.  It'd be
> nice if those two could be consolidated somehow, maybe allow a regex
> based resolver to make a note of what one hit and what captures
> occurred, so you can use that info later on?
> 

In my implementations I've actually created subclasses of
RegexTargetResolver and RegexTarget that allow me to parse once and
never again.  The mechanism for making this happen is less than
wonderful but it works.

> Also, for people who have used this stuff to build existing APP
> applications, how are you doing it?  Are you using AbderaServlet to
> handle all APP type traffic?  Using a custom servlet to do the same
> job as part of your application?

Trust me, it's less than ideal.  Unfortunately, I haven't been able to
really devote a lot of time to this because I've been working on backend
storage stuff.  This is definitely an area that needs a lot of work.
I'd be thrilled to see more folks jump in.

- James

Re: Thoughts on the Server Side API

Posted by Ugo Cei <ug...@gmail.com>.
On Oct 25, 2006, at 3:48 AM, Garrett Rooney wrote:

> Also, for people who have used this stuff to build existing APP
> applications, how are you doing it?  Are you using AbderaServlet to
> handle all APP type traffic?  Using a custom servlet to do the same
> job as part of your application?

I'm not using Abdera for the server-side code, mostly because when I  
started developing my project, Abdera wasn't yet available. I am  
using a highly modified version of the APP servlet provided by  
Roller, but the approach is similar in that I do have a dedicated  
servlet for this (and am planning to swap AbderaServlet in its place  
sooner or later).

On the other hand, I'm not using any kind of web framework.

	Ugo