abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: <content src=>
Date Tue, 08 Aug 2006 15:48:03 GMT
Keep in mind that the mime type is required on out of line content, so
it should be setContent(URI uri, String mediatype)  It should be very
simple to do.  As a hint to get you started, look at the Entry and
FOMEntry classes.  Specifically, look at the implementation of the
existing setContent(String value, String mediatype) method as a
template.  Implementing the new method should require only changing one
line of code from that method.

- James

Garrett Rooney wrote:
> On 8/8/06, Ugo Cei <ugo.cei@gmail.com> wrote:
>> Hi,
>> looking at the setContent* methods on the Entry interface, I cannot
>> figure out exactly which one should I use to output a <content>
>> element with an src attribute. IOW, I cannot find a method to easily
>> create out of line content.
> Hmm, I don't see an obvious way to do it, but it sure seems like there
> should be one.  Feel like putting together a patch that adds a
> setContentSrc(String) or maybe setContent(URI) version?  It seems like
> it should be pretty straitforward to implement.
> -garrett

View raw message