Package org.actioncontroller
Class ApiControllerContext
- java.lang.Object
-
- org.actioncontroller.ApiControllerContext
-
public class ApiControllerContext extends Object
Extra initialization variables for the ActionControllers. Attributes can be set on anApiServletorApiHandlerand read byHttpParameterMapperFactory.create(ANNOTATION, java.lang.reflect.Parameter, org.actioncontroller.ApiControllerContext)
-
-
Constructor Summary
Constructors Constructor Description ApiControllerContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetAttribute(Class<T> className)<T> TgetAttribute(Class<T> className, Supplier<T> creator)ObjectgetAttribute(String name)ApiControllerContextsetAttribute(Object o)ApiControllerContextsetAttribute(String name, Object value)
-
-
-
Method Detail
-
setAttribute
public ApiControllerContext setAttribute(String name, Object value)
-
setAttribute
public ApiControllerContext setAttribute(Object o)
-
getAttribute
public <T> T getAttribute(Class<T> className)
-
-