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

 

 <action ... >
   <interceptor-ref name="defaultStack"/>
   <interceptor-ref name="cookieProvider"/>
   ...
 </action>

 
 

另请参见:
序列化表格

构造方法摘要
CookieProviderInterceptor()
           
 
方法摘要
 void beforeResult(com.opensymphony.xwork2.ActionInvocation invocation, String resultCode)
           
 String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
           
 
从类 com.opensymphony.xwork2.interceptor.AbstractInterceptor 继承的方法
destroy, init
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

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