- From: Mark Baker <distobj@acm.org>
- Date: Thu, 16 Jun 2005 14:41:36 -0400
- To: Marc Hadley <Marc.Hadley@Sun.COM>
- Cc: public-web-http-desc@w3.org
Marc,
On Thu, Jun 16, 2005 at 02:24:12PM -0400, Marc Hadley wrote:
> E.g. I could write myself an Atom feed class along the lines of (I
> haven't committed the Atom format to memory so the cardinality and
> names of properties might be way off base here):
>
> public class AtomFeed {
>
> public AtomFeed(URI feedURI) {
> ...
> }
>
> public Map<URI,String> getCollections() {
> ...
> }
>
> public URI addEntry(URI collection, AtomEntry entry) {
> ...
> }
> }
>
> A description format could allow a code generator to spit out
> something similar.
But the code that a human would write to support Atom as a library
(e.g. http://www.howdev.com/technologies/), would already provide an
API analogous to the one you describe there.
Mark.
Received on Thursday, 16 June 2005 18:40:59 UTC