controllers
Class FilterController
java.lang.Object
controllers.FilterController
public class FilterController
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterController
public FilterController()
filter
public Result filter(Context context)
- Not yet finished.
Simply demonstrates how controllers can be annotated and filtered using
the FilterWith annotation:
- Parameters:
context
-
teapot
public Result teapot(Context context)
- Really cool. We are using two filters on the method.
Filters are executed sequentially. First the LoggerFilter then the
TeaPotFilter.
The TeaPotFilter changes completely the output and the status.
- Parameters:
context
-
Copyright © 2012. All Rights Reserved.