org.apache.tiles.autotag.core.runtime

## 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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `ModelBody` | `createModelBody()` Creates a new ModelBody instance to match the request.
    `R` | `createRequest()` Creates a new Request instance.
    `<T> T` | `getParameter(String name, Class<T> type, T defaultValue)` Extracts a parameter from the tag.

- - ### Method Detail

    - #### 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.

Copyright © 2000–2025 Apache Software Foundation. All rights reserved.