juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Bognar <jamesbog...@apache.org>
Subject Improvements to URI resolution.
Date Mon, 29 May 2017 16:09:23 GMT
Quick heads-up....

I'm making across-the-board improvements to the URI-resolution support
(i.e. how URIs get serialized).

One new feature will be the support for resolving the following URI

   - "context:/..." - Relative to context-root of the application.
   - "servlet:/..." - Relative to the servlet URI.
   - "request:/..." - Relative to the request URI.

For example, currently we define HTML page links using variables and
servlet-relative URIs...

pageLinks="{up:'$R{requestParentURI}', options:'?method=OPTIONS',

With these new protocols, we can define them like so:

pageLinks="{top:'context:/', up:'request:/..'
,options:'servlet:/?method=OPTIONS', upload:'servlet:/upload'}"

The old method of using variables and servlet-relative URIs will still be
supported, but using these new protocols should (hopefully) be easier to

These protocols work on all serialized URL and URI objects, as well as
classes and properties annotated with @URI.

Configuration properties will be provided for controlling whether URIs are
resolved to absolute or context-root-relative form, and for specifying
whether relative URIs are relative to the request URI or servlet URI.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message