All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webbitserver.rest.UriTemplateProcessor Maven / Gradle / Ivy

The newest version!
package org.webbitserver.rest;

import java.util.Map;

/**
 * Abstract representation of an URI-template engine.
 */
public interface UriTemplateProcessor {
    String expand(String uriTemplate, String[] keyValuePairs);

    String expand(String uriTemplate, Map parameters);

    /**
     * Extracts variables from a uri, matching against an URI template
     *
     * @param uriTemplate template to match against
     * @param uri         the URI
     * @return the matched variables, or null if there was no match
     */
    Map extract(String uriTemplate, String uri);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy