jodd.madvoc.interceptor
Class ServletConfigInterceptor

java.lang.Object
  extended by jodd.madvoc.interceptor.ActionInterceptor
      extended by jodd.madvoc.interceptor.ServletConfigInterceptor

public class ServletConfigInterceptor
extends ActionInterceptor

Configures actions and applies some servlet configuration prior action execution. This interceptor does the following:


Field Summary
protected  ApplicationScopeInjector applicationScopeInjector
           
protected  ContextInjector contextInjector
           
protected  MadvocConfig madvocConfig
           
protected  MadvocContextScopeInjector madvocContextScopeInjector
           
protected  RequestScopeInjector requestScopeInjector
           
protected  ServletContextScopeInjector servletContextScopeInjector
           
protected  SessionScopeInjector sessionScopeInjector
           
 
Fields inherited from class jodd.madvoc.interceptor.ActionInterceptor
initialized
 
Constructor Summary
ServletConfigInterceptor()
           
 
Method Summary
 void init()
          Invoked on interceptor initialization.
protected  void inject(java.lang.Object target, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
          Performs injection.
 java.lang.Object intercept(ActionRequest actionRequest)
          Intercepts action requests.
protected  void outject(java.lang.Object target, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
          Performs outjection.
 
Methods inherited from class jodd.madvoc.interceptor.ActionInterceptor
initialized, isInitialized, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

madvocConfig

@In(scope=CONTEXT)
protected MadvocConfig madvocConfig

contextInjector

@In(scope=CONTEXT)
protected ContextInjector contextInjector

requestScopeInjector

protected RequestScopeInjector requestScopeInjector

sessionScopeInjector

protected SessionScopeInjector sessionScopeInjector

applicationScopeInjector

protected ApplicationScopeInjector applicationScopeInjector

madvocContextScopeInjector

protected MadvocContextScopeInjector madvocContextScopeInjector

servletContextScopeInjector

protected ServletContextScopeInjector servletContextScopeInjector
Constructor Detail

ServletConfigInterceptor

public ServletConfigInterceptor()
Method Detail

init

public void init()
Description copied from class: ActionInterceptor
Invoked on interceptor initialization.

Overrides:
init in class ActionInterceptor

intercept

public java.lang.Object intercept(ActionRequest actionRequest)
                           throws java.lang.Exception
Intercepts action requests.

Specified by:
intercept in class ActionInterceptor
Throws:
java.lang.Exception

inject

protected void inject(java.lang.Object target,
                      javax.servlet.http.HttpServletRequest servletRequest,
                      javax.servlet.http.HttpServletResponse servletResponse)
Performs injection.


outject

protected void outject(java.lang.Object target,
                       javax.servlet.http.HttpServletRequest servletRequest,
                       javax.servlet.http.HttpServletResponse servletResponse)
Performs outjection.



Copyright © 2003-2011 Jodd Team