controllers
Class FilterController

java.lang.Object
  extended by controllers.FilterController

public class FilterController
extends Object


Constructor Summary
FilterController()
           
 
Method Summary
 Result filter(Context context)
          Not yet finished.
 Result teapot(Context context)
          Really cool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterController

public FilterController()
Method Detail

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 © 2013. All Rights Reserved.