AtomPub-multipart support

View: New views
4 Messages — Rating Filter:   Alert me  

AtomPub-multipart support

by David Calavera :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I've just added client and server support for AtomPub-multipart media
creation. It follow the Joe Gregorio specification draft:

http://atompub-mulitpart-spec.googlecode.com/svn/trunk/draft-gregorio-atompub-multipart-02.txt

 You can see how to configure it into the wiki:

http://cwiki.apache.org/confluence/display/ABDERA/Support+for+AtomPub-multipart

Re: AtomPub-multipart support

by dims :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

David,

Looks like you just fill up a Byte array and stick it in somewhere. right?

+ ByteArrayInputStream data = new ByteArrayInputStream(new
BASE64Decoder().decodeBuffer(multipart));; + + return new
MultipartRelatedPost(entry, data, entryHeaders, dataHeaders);

We'll need a better way when people post non-trivial sized media. Do you agree?

thanks,
dims

On Thu, Jul 24, 2008 at 4:48 AM, David Calavera
<david.calavera@...> wrote:

> Hi,
>
> I've just added client and server support for AtomPub-multipart media
> creation. It follow the Joe Gregorio specification draft:
>
> http://atompub-mulitpart-spec.googlecode.com/svn/trunk/draft-gregorio-atompub-multipart-02.txt
>
>  You can see how to configure it into the wiki:
>
> http://cwiki.apache.org/confluence/display/ABDERA/Support+for+AtomPub-multipart
>



--
Davanum Srinivas :: http://davanum.wordpress.com

Re: AtomPub-multipart support

by David Calavera :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Absolutely, This is not a final implementation and since there is an open
discussion on the atom-protocol list I'm sure we'll have to change some
stuff. Moreover I still have to drop the sun Base64 implementation and use
commons-codec.

On Fri, Jul 25, 2008 at 5:20 AM, Davanum Srinivas <davanum@...> wrote:

> David,
>
> Looks like you just fill up a Byte array and stick it in somewhere. right?
>
> + ByteArrayInputStream data = new ByteArrayInputStream(new
> BASE64Decoder().decodeBuffer(multipart));; + + return new
> MultipartRelatedPost(entry, data, entryHeaders, dataHeaders);
>
> We'll need a better way when people post non-trivial sized media. Do you
> agree?
>
> thanks,
> dims
>
> On Thu, Jul 24, 2008 at 4:48 AM, David Calavera
> <david.calavera@...> wrote:
> > Hi,
> >
> > I've just added client and server support for AtomPub-multipart media
> > creation. It follow the Joe Gregorio specification draft:
> >
> >
> http://atompub-mulitpart-spec.googlecode.com/svn/trunk/draft-gregorio-atompub-multipart-02.txt
> >
> >  You can see how to configure it into the wiki:
> >
> >
> http://cwiki.apache.org/confluence/display/ABDERA/Support+for+AtomPub-multipart
> >
>
>
>
> --
> Davanum Srinivas :: http://davanum.wordpress.com
>



--
David Calavera
http://www.thinkincode.net

Re: AtomPub-multipart support

by dims :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sounds good David.

thanks,
dims

On Fri, Jul 25, 2008 at 10:17 AM, David Calavera
<david.calavera@...> wrote:

> Absolutely, This is not a final implementation and since there is an open
> discussion on the atom-protocol list I'm sure we'll have to change some
> stuff. Moreover I still have to drop the sun Base64 implementation and use
> commons-codec.
>
> On Fri, Jul 25, 2008 at 5:20 AM, Davanum Srinivas <davanum@...> wrote:
>
>> David,
>>
>> Looks like you just fill up a Byte array and stick it in somewhere. right?
>>
>> + ByteArrayInputStream data = new ByteArrayInputStream(new
>> BASE64Decoder().decodeBuffer(multipart));; + + return new
>> MultipartRelatedPost(entry, data, entryHeaders, dataHeaders);
>>
>> We'll need a better way when people post non-trivial sized media. Do you
>> agree?
>>
>> thanks,
>> dims
>>
>> On Thu, Jul 24, 2008 at 4:48 AM, David Calavera
>> <david.calavera@...> wrote:
>> > Hi,
>> >
>> > I've just added client and server support for AtomPub-multipart media
>> > creation. It follow the Joe Gregorio specification draft:
>> >
>> >
>> http://atompub-mulitpart-spec.googlecode.com/svn/trunk/draft-gregorio-atompub-multipart-02.txt
>> >
>> >  You can see how to configure it into the wiki:
>> >
>> >
>> http://cwiki.apache.org/confluence/display/ABDERA/Support+for+AtomPub-multipart
>> >
>>
>>
>>
>> --
>> Davanum Srinivas :: http://davanum.wordpress.com
>>
>
>
>
> --
> David Calavera
> http://www.thinkincode.net
>



--
Davanum Srinivas :: http://davanum.wordpress.com
LightInTheBox - Buy quality products at wholesale price