|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.interceptor.AbstractInterceptor
org.apache.struts2.interceptor.ServletConfigInterceptor
public class ServletConfigInterceptor
An interceptor which sets action properties based on the interfaces an action implements. For example, if the action
implements ParameterAware then the action context's parameter map will be set on it.
ServletContextAwareServletRequestAwareServletResponseAwareParameterAwareRequestAwareSessionAwareApplicationAwarePrincipalAware
<action name="someAction" class="com.examples.SomeAction">
<interceptor-ref name="servletConfig"/>
<interceptor-ref name="basicStack"/>
<result name="success">good_result.ftl</result>
</action>
ServletContextAware,
ServletRequestAware,
ServletResponseAware,
ParameterAware,
SessionAware,
ApplicationAware,
PrincipalAware,
Serialized Form| Field Summary |
|---|
| Fields inherited from interface org.apache.struts2.StrutsStatics |
|---|
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER, STRUTS_ACTION_TAG_INVOCATION, STRUTS_PORTLET_CONTEXT |
| Constructor Summary | |
|---|---|
ServletConfigInterceptor()
|
|
| Method Summary | |
|---|---|
java.lang.String |
intercept(ActionInvocation invocation)
Sets action properties based on the interfaces an action implements. |
| Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor |
|---|
destroy, init |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServletConfigInterceptor()
| Method Detail |
|---|
public java.lang.String intercept(ActionInvocation invocation)
throws java.lang.Exception
intercept in interface Interceptorintercept in class AbstractInterceptorinvocation - an encapsulation of the action execution state.
java.lang.Exception - if an error occurs when setting action properties.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||