diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-03-13 19:24:02 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-03-13 19:24:02 +0000 |
commit | d1d9ba0e29baed02a052dae81b049d00a1454bf8 (patch) | |
tree | 722f36446ddb5acc51b4f3a3047f64b988fa99a4 /sca-cpp/trunk/modules/edit/apps | |
parent | 6ecf9ca142893fe27ae9a2e269f7dff73fb6d7c6 (diff) |
Add a reusable component that returns the contents of a configured url.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1081203 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/modules/edit/apps/testget/app.composite | 65 | ||||
-rw-r--r-- | sca-cpp/trunk/modules/edit/apps/testget/app.html | 20 | ||||
-rw-r--r-- | sca-cpp/trunk/modules/edit/apps/testlogic/app.composite | 12 |
3 files changed, 91 insertions, 6 deletions
diff --git a/sca-cpp/trunk/modules/edit/apps/testget/app.composite b/sca-cpp/trunk/modules/edit/apps/testget/app.composite new file mode 100644 index 0000000000..9f841afed6 --- /dev/null +++ b/sca-cpp/trunk/modules/edit/apps/testget/app.composite @@ -0,0 +1,65 @@ +<?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 + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:t="http://tuscany.apache.org/xmlns/sca/1.1" targetNamespace="http://testget" name="testget"> + <service name="get" promote="get"/> + <component t:x="25" t:y="25" name="get" t:title="http get" t:color="green1"> + <implementation.cpp path="lib/http" library="libhttpget"/> + <service name="get"/> + <reference target="text" name="url"/> + </component> + <component t:x="89" t:y="25" name="text" t:title="text" t:color="orange1"> + <t:implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>http://www.google.com</property> + </component> + <service name="get2" promote="get2"/> + <component t:x="24" t:y="91" name="get2" t:title="http get" t:color="green1"> + <implementation.cpp path="lib/http" library="libhttpget"/> + <service name="get"/> + <reference target="text2" name="url"/> + </component> + <service name="get3" promote="get3"/> + <component t:x="23" t:y="175" name="get3" t:title="http get" t:color="green1"> + <implementation.cpp path="lib/http" library="libhttpget"/> + <service name="get"/> + <reference target="text3" name="url"/> + </component> + <component t:x="87" t:y="175" name="text3" t:title="text" t:color="orange1"> + <t:implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>http://www.weather.gov/forecasts/xml/sample_products/browser_interface/ndfdXMLclient.php?whichClient=NDFDgen&lat=38.99&lon=-77.01&listLatLon=&lat1=&lon1=&lat2=&lon2=&resolutionSub=&listLat1=&listLon1=&listLat2=&listLon2=&resolutionList=&endPoint1Lat=&endPoint1Lon=&endPoint2Lat=&endPoint2Lon=&listEndPoint1Lat=&listEndPoint1Lon=&listEndPoint2Lat=&listEndPoint2Lon=&zipCodeList=&listZipCodeList=&centerPointLat=&centerPointLon=&distanceLat=&distanceLon=&resolutionSquare=&listCenterPointLat=&listCenterPointLon=&listDistanceLat=&listDistanceLon=&listResolutionSquare=&citiesLevel=&listCitiesLevel=&sector=&gmlListLatLon=&featureType=&requestedTime=&startTime=&endTime=&compType=&propertyName=&product=time-series&begin=2004-01-01T00%3A00%3A00&end=2015-03-10T00%3A00%3A00&maxt=maxt&Submit=Submit</property> + </component> + <component t:x="88" t:y="91" name="text2" t:title="text" t:color="orange1"> + <t:implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>http://maps.googleapis.com/maps/api/directions/json?origin=Boston,MA&destination=Concord,MA&waypoints=Charlestown,MA|Lexington,MA&sensor=false</property> + </component> + <service name="get4" promote="get4"/> + <component t:x="26" t:y="267" name="get4" t:title="http get" t:color="green1"> + <implementation.cpp path="lib/http" library="libhttpget"/> + <service name="get"/> + <reference target="text4" name="url"/> + </component> + <component t:x="90" t:y="267" name="text4" t:title="text" t:color="orange1"> + <t:implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>http://feedproxy.google.com/TechCrunch</property> + </component> +</composite> diff --git a/sca-cpp/trunk/modules/edit/apps/testget/app.html b/sca-cpp/trunk/modules/edit/apps/testget/app.html new file mode 100644 index 0000000000..5c7c7219bb --- /dev/null +++ b/sca-cpp/trunk/modules/edit/apps/testget/app.html @@ -0,0 +1,20 @@ +<?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 + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<DIV id="page"/> diff --git a/sca-cpp/trunk/modules/edit/apps/testlogic/app.composite b/sca-cpp/trunk/modules/edit/apps/testlogic/app.composite index 242a49c013..415de6a677 100644 --- a/sca-cpp/trunk/modules/edit/apps/testlogic/app.composite +++ b/sca-cpp/trunk/modules/edit/apps/testlogic/app.composite @@ -26,15 +26,10 @@ <reference target="text" name="then"/> <reference target="text2" name="else"/> </component> - <component t:x="123" t:y="21" name="item" t:title="item" t:color="yellow1"> - <t:implementation.python script="nuvem/item.py"/> - <service name="item"/> - <property>item</property> - </component> <component t:x="75" t:y="24" name="greater" t:title="gt" t:color="magenta1"> <t:implementation.python script="nuvem/greater.py"/> <service name="greater"/> - <reference target="item" name="value1"/> + <reference target="number2" name="value1"/> <reference target="number" name="value2"/> </component> <component t:x="118" t:y="66" name="number" t:title="number" t:color="orange1"> @@ -52,4 +47,9 @@ <service name="text"/> <property>not greater than 5</property> </component> + <component t:x="88" t:y="25" name="number2" t:title="number" t:color="orange1"> + <t:implementation.python script="nuvem/number.py"/> + <service name="number"/> + <property>3</property> + </component> </composite> |