Interface UriTemplate.TemplateValueStrategy

Enclosing class:
UriTemplate

private static interface UriTemplate.TemplateValueStrategy
A strategy interface for processing parameters, should be replaced with a JDK 8 one day in the future.
  • Method Summary

    Modifier and Type
    Method
    Description
    valueFor(String templateVariable, String matchedGroup)
    Get a value for a given template variable.
  • Method Details

    • valueFor

      String valueFor(String templateVariable, String matchedGroup)
      Get a value for a given template variable.
      Parameters:
      templateVariable - template variable.
      matchedGroup - matched group string for a given template variable.
      Returns:
      template value.
      Throws:
      IllegalArgumentException - in case no value has been found and the strategy does not support null values.