Interface AutotagRuntime<R>

All Known Implementing Classes:
FreemarkerAutotagRuntime, JspAutotagRuntime, VelocityAutotagRuntime

public interface AutotagRuntime<R>
Builder interface for creating requests. The implementations are expected to provide a default constructor, and to implement another interface that can be used to provide the parameters needed to build the actual request object.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new ModelBody instance to match the request.
    Creates a new Request instance.
    <T> T
    getParameter(String name, Class<T> type, T defaultValue)
    Extracts a parameter from the tag.
  • Method Details

    • createRequest

      R createRequest()
      Creates a new Request instance.
      Returns:
      The Request.
    • createModelBody

      ModelBody createModelBody()
      Creates a new ModelBody instance to match the request.
      Returns:
      The ModelBody.
    • getParameter

      <T> T getParameter(String name, Class<T> type, T defaultValue)
      Extracts a parameter from the tag.
      Parameters:
      name - The name of the parameter.
      defaultValue - The default value if none is specified.
      Returns:
      The value of the parameter.