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: Absolutizing URIs
Date Tue, 20 Jun 2006 15:14:34 GMT
All of the elements that allow relative uri's have a getResolved...
form.  For example, if you want to get the resolved value of a Link's
href attribute, you would call:

  URI uri = entry.getAlternateLink().getResolvedHref();

The will resolve the value against the current in-scope Base URI.

- James

Ugo Cei wrote:
> Hi folks,
> 
> I have a question for you: what is the best way to absolutize relative
> URIs coming from an Atom document, assuming that I have parsed the
> document using Parser.INSTANCE.parse(inputStream, baseURI) ?
> 
>     TIA,
> 
> 
>         Ugo
> 
> 
> --Ugo Cei
> Blog: http://agylen.com/
> Open Source Zone: http://oszone.org/
> Evil or Not?: http://evilornot.info/
> Company: http://www.sourcesense.com/
> 
> 
> 

Mime
View raw message