You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2010/07/28 13:47:19 UTC

svn commit: r980027 - in /synapse/trunk/java/repository/conf/sample: synapse_sample_370.xml synapse_sample_371.xml synapse_sample_372.xml

Author: ruwan
Date: Wed Jul 28 11:47:18 2010
New Revision: 980027

URL: http://svn.apache.org/viewvc?rev=980027&view=rev
Log:
migrating samples 370 to 372

Modified:
    synapse/trunk/java/repository/conf/sample/synapse_sample_370.xml
    synapse/trunk/java/repository/conf/sample/synapse_sample_371.xml
    synapse/trunk/java/repository/conf/sample/synapse_sample_372.xml

Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_370.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_370.xml?rev=980027&r1=980026&r2=980027&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_370.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_370.xml Wed Jul 28 11:47:18 2010
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <!--
   ~  Licensed to the Apache Software Foundation (ASF) under one
   ~  or more contributor license agreements.  See the NOTICE file
@@ -19,6 +20,7 @@
 
 <!-- Introduction to throttle mediator -->
 <definitions xmlns="http://synapse.apache.org/ns/2010/04/configuration">
+
     <sequence name="main">
         <in>
             <throttle id="A">
@@ -27,7 +29,7 @@
                     <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
                                 xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle">
                         <throttle:ThrottleAssertion>
-                            <throttle:MaximumConcurrentAccess>10</throttle:MaximumConcurrentAccess>                            
+                            <throttle:MaximumConcurrentAccess>10</throttle:MaximumConcurrentAccess>
                         </throttle:ThrottleAssertion>
                     </wsp:Policy>
                 </policy>
@@ -46,8 +48,8 @@
                         <property name="text" value="**Access Denied**"/>
                     </log>
                     <makefault response="true">
-                        <code value="tns:Receiver"
-                              xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
+                        <code xmlns:tns="http://www.w3.org/2003/05/soap-envelope"
+                              value="tns:Receiver"/>
                         <reason value="**Access Denied**"/>
                     </makefault>
                     <send/>
@@ -60,4 +62,5 @@
             <send/>
         </out>
     </sequence>
+
 </definitions>

Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_371.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_371.xml?rev=980027&r1=980026&r2=980027&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_371.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_371.xml Wed Jul 28 11:47:18 2010
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <!--
   ~  Licensed to the Apache Software Foundation (ASF) under one
   ~  or more contributor license agreements.  See the NOTICE file
@@ -19,6 +20,7 @@
 
 <!-- Restricting requests based on policies -->
 <definitions xmlns="http://synapse.apache.org/ns/2010/04/configuration">
+
     <sequence name="main">
         <in>
             <throttle id="A">
@@ -33,18 +35,21 @@
                                     <wsp:All>
                                         <throttle:MaximumCount>4</throttle:MaximumCount>
                                         <throttle:UnitTime>800000</throttle:UnitTime>
-                                        <throttle:ProhibitTimePeriod wsp:Optional="true">10000</throttle:ProhibitTimePeriod>
+                                        <throttle:ProhibitTimePeriod wsp:Optional="true">10000
+                                        </throttle:ProhibitTimePeriod>
                                     </wsp:All>
                                     <throttle:IsAllow>true</throttle:IsAllow>
                                 </wsp:ExactlyOne>
                             </wsp:All>
                             <wsp:All>
-                                <throttle:ID throttle:type="IP">192.168.8.200-192.168.8.222</throttle:ID>
+                                <throttle:ID throttle:type="IP">192.168.8.200-192.168.8.222
+                                </throttle:ID>
                                 <wsp:ExactlyOne>
                                     <wsp:All>
                                         <throttle:MaximumCount>8</throttle:MaximumCount>
                                         <throttle:UnitTime>800000</throttle:UnitTime>
-                                        <throttle:ProhibitTimePeriod wsp:Optional="true">10</throttle:ProhibitTimePeriod>
+                                        <throttle:ProhibitTimePeriod wsp:Optional="true">10
+                                        </throttle:ProhibitTimePeriod>
                                     </wsp:All>
                                     <throttle:IsAllow>true</throttle:IsAllow>
                                 </wsp:ExactlyOne>
@@ -55,7 +60,7 @@
                                     <wsp:All>
                                         <throttle:MaximumCount>200</throttle:MaximumCount>
                                         <throttle:UnitTime>600000</throttle:UnitTime>
-                                        <throttle:ProhibitTimePeriod wsp:Optional="true"></throttle:ProhibitTimePeriod>
+                                        <throttle:ProhibitTimePeriod wsp:Optional="true"/>
                                     </wsp:All>
                                     <throttle:IsAllow>true</throttle:IsAllow>
                                 </wsp:ExactlyOne>
@@ -66,7 +71,7 @@
                                     <wsp:All>
                                         <throttle:MaximumCount>50</throttle:MaximumCount>
                                         <throttle:UnitTime>500000</throttle:UnitTime>
-                                        <throttle:ProhibitTimePeriod wsp:Optional="true"></throttle:ProhibitTimePeriod>
+                                        <throttle:ProhibitTimePeriod wsp:Optional="true"/>
                                     </wsp:All>
                                     <throttle:IsAllow>true</throttle:IsAllow>
                                 </wsp:ExactlyOne>
@@ -89,8 +94,8 @@
                         <property name="text" value="**Access Denied**"/>
                     </log>
                     <makefault response="true">
-                        <code value="tns:Receiver"
-                              xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
+                        <code xmlns:tns="http://www.w3.org/2003/05/soap-envelope"
+                              value="tns:Receiver"/>
                         <reason value="**Access Denied**"/>
                     </makefault>
                     <send/>
@@ -103,4 +108,5 @@
             <send/>
         </out>
     </sequence>
+
 </definitions>

Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_372.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_372.xml?rev=980027&r1=980026&r2=980027&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_372.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_372.xml Wed Jul 28 11:47:18 2010
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <!--
   ~  Licensed to the Apache Software Foundation (ASF) under one
   ~  or more contributor license agreements.  See the NOTICE file
@@ -37,21 +38,22 @@
             </endpoint>
         </send>
     </sequence>
+
     <sequence name="onRejectSequence" trace="enable">
         <log level="custom">
             <property name="text" value="**Access Denied**"/>
         </log>
         <makefault response="true">
-            <code value="tns:Receiver"
-                  xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
+            <code xmlns:tns="http://www.w3.org/2003/05/soap-envelope" value="tns:Receiver"/>
             <reason value="**Access Denied**"/>
         </makefault>
         <send/>
         <drop/>
     </sequence>
+
     <proxy name="StockQuoteProxy">
         <target>
-             <inSequence>
+            <inSequence>
                 <throttle onReject="onRejectSequence" onAccept="onAcceptSequence" id="A">
                     <policy key="conf/sample/resources/policy/throttle_policy.xml"/>
                 </throttle>
@@ -63,4 +65,5 @@
         </target>
         <publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
     </proxy>
+
 </definitions>