org.apache.struts2.interceptor
类 CookieProviderInterceptor
java.lang.Object
com.opensymphony.xwork2.interceptor.AbstractInterceptor
org.apache.struts2.interceptor.CookieProviderInterceptor
- 所有已实现的接口:
- com.opensymphony.xwork2.interceptor.Interceptor, com.opensymphony.xwork2.interceptor.PreResultListener, Serializable
public class CookieProviderInterceptor
- extends com.opensymphony.xwork2.interceptor.AbstractInterceptor
- implements com.opensymphony.xwork2.interceptor.PreResultListener
Allows actions to send cookies to client, action must implement CookieProvider
You must reference this interceptor in your default stack or in action's stack, see example below.
none
- addCookiesToResponse - this method applies cookie created by action to response
<action ... >
<interceptor-ref name="defaultStack"/>
<interceptor-ref name="cookieProvider"/>
...
</action>
- 另请参见:
- 序列化表格
从类 com.opensymphony.xwork2.interceptor.AbstractInterceptor 继承的方法 |
destroy, init |
CookieProviderInterceptor
public CookieProviderInterceptor()
intercept
public String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
throws Exception
- 指定者:
- 接口
com.opensymphony.xwork2.interceptor.Interceptor
中的 intercept
- 指定者:
- 类
com.opensymphony.xwork2.interceptor.AbstractInterceptor
中的 intercept
- 抛出:
Exception
beforeResult
public void beforeResult(com.opensymphony.xwork2.ActionInvocation invocation,
String resultCode)
- 指定者:
- 接口
com.opensymphony.xwork2.interceptor.PreResultListener
中的 beforeResult