<%-- Document : URI_Templates Created on : Sep 28, 2015, 10:35:44 AM Author : jbf --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> URI Templates Demo

Parsing URIs

URI Templates can be used to interpret a URI. Given a URI, we can interpret the timespan covered and other information. Note only URLs, a type of URI, are supported here, and it is assumed that the server supports directory listings.

Enter URI (help): Examples: A B C


Enter ISO8601 Time Range limiting the results printed:


Generating URIs

We can also use these templates to generate the names of files. For example, suppose a server doesn't support listings, so all we can do is to generate names. This will run much faster, because we don't have to get the file listings from the server.

Enter URI (help): Examples: A B C D E F G


Enter ISO8601 Time Range limiting the results printed:


Hybrid Generating/Parsing URIs

This will use the generation code for all parts of the URI which can be handled with generation, and then will switch to parsing for parts that need parsing. For example, the $Y/$m/$d/ components can be resolved, and then listings are used to resolve $H$M$(S,sparse).png.

Enter URI (help): Examples: A B C D


Enter ISO8601 Time Range limiting the results printed:



version 20151020T0748