br.com.caelum.vraptor.environment
Class EnvironmentInterceptor

java.lang.Object
  extended by br.com.caelum.vraptor.environment.EnvironmentInterceptor
All Implemented Interfaces:
br.com.caelum.vraptor.interceptor.Interceptor

@Intercepts
public class EnvironmentInterceptor
extends Object
implements br.com.caelum.vraptor.interceptor.Interceptor

This interceptor inserts a environment variable in all requests

Author:
Alexandre Atoji

Constructor Summary
EnvironmentInterceptor(javax.servlet.http.HttpServletRequest request, Environment environment)
           
 
Method Summary
 boolean accepts(br.com.caelum.vraptor.resource.ResourceMethod arg0)
           
 void intercept(br.com.caelum.vraptor.core.InterceptorStack stack, br.com.caelum.vraptor.resource.ResourceMethod method, Object instance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvironmentInterceptor

public EnvironmentInterceptor(javax.servlet.http.HttpServletRequest request,
                              Environment environment)
Method Detail

accepts

public boolean accepts(br.com.caelum.vraptor.resource.ResourceMethod arg0)
Specified by:
accepts in interface br.com.caelum.vraptor.interceptor.Interceptor

intercept

public void intercept(br.com.caelum.vraptor.core.InterceptorStack stack,
                      br.com.caelum.vraptor.resource.ResourceMethod method,
                      Object instance)
               throws br.com.caelum.vraptor.InterceptionException
Specified by:
intercept in interface br.com.caelum.vraptor.interceptor.Interceptor
Throws:
br.com.caelum.vraptor.InterceptionException


Copyright © 2011. All Rights Reserved.