org.apache.struts2.interceptor
类 I18nInterceptor

java.lang.Object
  继承者 com.opensymphony.xwork2.interceptor.AbstractInterceptor
      继承者 com.opensymphony.xwork2.interceptor.I18nInterceptor
          继承者 org.apache.struts2.interceptor.I18nInterceptor
所有已实现的接口:
com.opensymphony.xwork2.interceptor.Interceptor, Serializable

public class I18nInterceptor
extends com.opensymphony.xwork2.interceptor.I18nInterceptor

This interceptor extends the original xwork i18n interceptor and adds functionality to support cookies.

<interceptor name="i18nCookie" class="org.apache.struts2.interceptor.I18nInterceptor"/> <action name="someAction" class="com.examples.SomeAction"> <interceptor-ref name="i18nCookie"/> <interceptor-ref name="basicStack"/> <result name="success">good_result.ftl</result> </action>

另请参见:
序列化表格

字段摘要
static String COOKIE_STORAGE
           
static String DEFAULT_COOKIE_ATTRIBUTE
           
static String DEFAULT_COOKIE_PARAMETER
           
 
从类 com.opensymphony.xwork2.interceptor.I18nInterceptor 继承的字段
DEFAULT_PARAMETER, DEFAULT_REQUESTONLY_PARAMETER, DEFAULT_SESSION_ATTRIBUTE
 
构造方法摘要
I18nInterceptor()
           
 
方法摘要
 String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
           
 void setRequestCookieParameterName(String requestCookieParameterName)
           
 
从类 com.opensymphony.xwork2.interceptor.I18nInterceptor 继承的方法
setAttributeName, setParameterName, setRequestOnlyParameterName
 
从类 com.opensymphony.xwork2.interceptor.AbstractInterceptor 继承的方法
destroy, init
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

DEFAULT_COOKIE_ATTRIBUTE

public static final String DEFAULT_COOKIE_ATTRIBUTE
另请参见:
常量字段值

COOKIE_STORAGE

public static final String COOKIE_STORAGE
另请参见:
常量字段值

DEFAULT_COOKIE_PARAMETER

public static final String DEFAULT_COOKIE_PARAMETER
另请参见:
常量字段值
构造方法详细信息

I18nInterceptor

public I18nInterceptor()
方法详细信息

intercept

public String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
                 throws Exception
指定者:
接口 com.opensymphony.xwork2.interceptor.Interceptor 中的 intercept
覆盖:
com.opensymphony.xwork2.interceptor.I18nInterceptor 中的 intercept
抛出:
Exception

setRequestCookieParameterName

public void setRequestCookieParameterName(String requestCookieParameterName)