org.apache.tiles.autotag.core.runtime
Interface AutotagRuntime<R>

Package class diagram package AutotagRuntime

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
 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 © 2001-2012 Apache Software Foundation. All Rights Reserved.