jodd.madvoc.interceptor
Class ServletConfigInterceptor
java.lang.Object
jodd.madvoc.interceptor.ActionInterceptor
jodd.madvoc.interceptor.ServletConfigInterceptor
public class ServletConfigInterceptor
- extends ActionInterceptor
Configures actions and applies some servlet configuration prior action execution.
This interceptor does the following:
- uses multi-part request if needed
- performs the injection (using either default or specified injector)
- invokes the action
- performs the outjection.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
ServletConfigInterceptor
public ServletConfigInterceptor()
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-2010 Jodd Team