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">&lt;action ... &gt;</SPAN>
+  <SPAN class="code-tag">&lt;interceptor-ref name=<SPAN class="code-quote">&quot;defaultStack&quot;</SPAN>/&gt;</SPAN>
+  <SPAN class="code-tag">&lt;interceptor-ref name=<SPAN class="code-quote">&quot;cookieProvider&quot;</SPAN>/&gt;</SPAN>
+  ...
+<SPAN class="code-tag">&lt;/action&gt;</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">&lt;interceptor name=<SPAN class="code-quote">&quot;chain&quot;</SPAN> class=<SPAN class="code-quote">&quot;com.opensymphony.xwork2.interceptor.ChainingInterceptor&quot;</SPAN>/&gt;</SPAN>
             <SPAN class="code-tag">&lt;interceptor name=<SPAN class="code-quote">&quot;conversionError&quot;</SPAN> class=<SPAN class="code-quote">&quot;org.apache.struts2.interceptor.StrutsConversionErrorInterceptor&quot;</SPAN>/&gt;</SPAN>
             <SPAN class="code-tag">&lt;interceptor name=<SPAN class="code-quote">&quot;cookie&quot;</SPAN> class=<SPAN class="code-quote">&quot;org.apache.struts2.interceptor.CookieInterceptor&quot;</SPAN>/&gt;</SPAN>
+            <SPAN class="code-tag">&lt;interceptor name=<SPAN class="code-quote">&quot;cookieProvider&quot;</SPAN> class=<SPAN class="code-quote">&quot;org.apache.struts2.interceptor.CookieProviderInterceptor&quot;</SPAN>/&gt;</SPAN>
             <SPAN class="code-tag">&lt;interceptor name=<SPAN class="code-quote">&quot;clearSession&quot;</SPAN> class=<SPAN class="code-quote">&quot;org.apache.struts2.interceptor.ClearSessionInterceptor&quot;</SPAN> /&gt;</SPAN>
             <SPAN class="code-tag">&lt;interceptor name=<SPAN class="code-quote">&quot;createSession&quot;</SPAN> class=<SPAN class="code-quote">&quot;org.apache.struts2.interceptor.CreateSessionInterceptor&quot;</SPAN> /&gt;</SPAN>
             <SPAN class="code-tag">&lt;interceptor name=<SPAN class="code-quote">&quot;debugging&quot;</SPAN> class=<SPAN class="code-quote">&quot;org.apache.struts2.interceptor.debugging.DebuggingInterceptor&quot;</SPAN> /&gt;</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>