dev@jsr311.java.net

RE: Re: URI Escaping and Unescaping

From: David Orchard <dorchard_at_bea.com>
Date: Thu, 21 Jun 2007 08:16:26 -0700

What about defining a String-template-with-URI-Escaping or somesuch
spec?

Define the acceptable strings to be larger than URI-templates and then
spec that conversion to URI-templates is just following the URI escaping
rules. JSR-311 could use that, the "more human readable" template
language for annotations.

Cheers,
Dave

> -----Original Message-----
> From: Julian Reschke [mailto:julian.reschke_at_gmx.de]
> Sent: Thursday, June 21, 2007 5:18 AM
> To: dev_at_jsr311.dev.java.net
> Subject: Re: URI Escaping and Unescaping
>
> Hi,
>
> I think this kind of proves that the URI template internet
> draft needs to be finished, and then, the relation between
> JSR-311's templates and the ones described by the IETF spec
> needs to be clarified.
>
> Right now,
> <http://bitworking.org/projects/URI-Templates/draft-gregorio-u
> ritemplate-00.html>
> seems to speak about URIs, nothing else. So you can't have an
> unescaped blank space, nor non-ASCII characters. It seems to
> me that this is what the current RI should implement.
>
> Which also means that unescaping of templated values needs to
> be done in a separate step. That may be a bit ugly, but I
> really prefer that in comparison to messing around with the
> template format.
>
>
>
>
> Best regards, Julian
>
> (*) we could use IRI templates, instead of URI templates, but
> then we'll still have to take care of characters not allowed
> in IRIs, such as SP, "{", "}", "/" and so on...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: dev-help_at_jsr311.dev.java.net
>
>