KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jodd > madvoc > interceptor > RenderViewInterceptor


1 // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
2

3 package jodd.madvoc.interceptor;
4
5 import jodd.madvoc.ActionRequest;
6
7 /**
8  * Interceptor that invokes {@link jodd.madvoc.ActionRequest#render(String)} after
9  * action invocation.
10  */

11 public class RenderViewInterceptor implements ActionInterceptor {
12
13     public String JavaDoc intercept(ActionRequest actionRequest) throws Exception JavaDoc {
14         String JavaDoc result = actionRequest.invoke();
15         actionRequest.render(result);
16         return result;
17     }
18 }
19
Popular Tags