You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2013/06/13 21:10:03 UTC
svn commit: r865591 - in
/websites/production/struts/content/development/2.x/docs:
cookieprovider-interceptor.html interceptors.html
Author: lukaszlenart
Date: Thu Jun 13 19:10:03 2013
New Revision: 865591
Log:
Updates draft docs
Modified:
websites/production/struts/content/development/2.x/docs/cookieprovider-interceptor.html
websites/production/struts/content/development/2.x/docs/interceptors.html
Modified: websites/production/struts/content/development/2.x/docs/cookieprovider-interceptor.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/cookieprovider-interceptor.html (original)
+++ websites/production/struts/content/development/2.x/docs/cookieprovider-interceptor.html Thu Jun 13 19:10:03 2013
@@ -123,16 +123,32 @@ under the License.
<DIV class="pagecontent">
<DIV class="wiki-content">
- <DIV class="error"><SPAN class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</SPAN> </DIV>
+ <P>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.</P>
<P>Parameters</P>
-<DIV class="error"><SPAN class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</SPAN> </DIV>
+
+<P>none</P>
+
<P>Extending the Interceptor</P>
-<DIV class="error"><SPAN class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</SPAN> </DIV>
+
+<P><UL>
+ <LI>addCookiesToResponse - this method applies cookie created by action to response</LI>
+</UL></P>
+
<P>Examples</P>
-<DIV class="error"><SPAN class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</SPAN> </DIV>
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-xml">
+<SPAN class="code-tag"><action ... ></SPAN>
+ <SPAN class="code-tag"><interceptor-ref name=<SPAN class="code-quote">"defaultStack"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><interceptor-ref name=<SPAN class="code-quote">"cookieProvider"</SPAN>/></SPAN>
+ ...
+<SPAN class="code-tag"></action></SPAN>
+
+</PRE>
+</DIV></DIV>
</DIV>
Modified: websites/production/struts/content/development/2.x/docs/interceptors.html
==============================================================================
--- websites/production/struts/content/development/2.x/docs/interceptors.html (original)
+++ websites/production/struts/content/development/2.x/docs/interceptors.html Thu Jun 13 19:10:03 2013
@@ -367,6 +367,7 @@ under the License.
<SPAN class="code-tag"><interceptor name=<SPAN class="code-quote">"chain"</SPAN> class=<SPAN class="code-quote">"com.opensymphony.xwork2.interceptor.ChainingInterceptor"</SPAN>/></SPAN>
<SPAN class="code-tag"><interceptor name=<SPAN class="code-quote">"conversionError"</SPAN> class=<SPAN class="code-quote">"org.apache.struts2.interceptor.StrutsConversionErrorInterceptor"</SPAN>/></SPAN>
<SPAN class="code-tag"><interceptor name=<SPAN class="code-quote">"cookie"</SPAN> class=<SPAN class="code-quote">"org.apache.struts2.interceptor.CookieInterceptor"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><interceptor name=<SPAN class="code-quote">"cookieProvider"</SPAN> class=<SPAN class="code-quote">"org.apache.struts2.interceptor.CookieProviderInterceptor"</SPAN>/></SPAN>
<SPAN class="code-tag"><interceptor name=<SPAN class="code-quote">"clearSession"</SPAN> class=<SPAN class="code-quote">"org.apache.struts2.interceptor.ClearSessionInterceptor"</SPAN> /></SPAN>
<SPAN class="code-tag"><interceptor name=<SPAN class="code-quote">"createSession"</SPAN> class=<SPAN class="code-quote">"org.apache.struts2.interceptor.CreateSessionInterceptor"</SPAN> /></SPAN>
<SPAN class="code-tag"><interceptor name=<SPAN class="code-quote">"debugging"</SPAN> class=<SPAN class="code-quote">"org.apache.struts2.interceptor.debugging.DebuggingInterceptor"</SPAN> /></SPAN>
@@ -982,6 +983,9 @@ thisWillRunFirstInterceptor
<A href="multiselect-interceptor.html" title="Multiselect Interceptor">Multiselect Interceptor</A>
<SPAN class="smalltext">(Apache Struts 2 Documentation)</SPAN>
<BR>
+ <A href="cookieprovider-interceptor.html" title="CookieProvider Interceptor">CookieProvider Interceptor</A>
+ <SPAN class="smalltext">(Apache Struts 2 Documentation)</SPAN>
+ <BR>
</DIV>
</DIV>