summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/edit/palettes/http/palette.composite
blob: 317cf338ed7524898c9877c177380bfcef706c1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?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://http"
  name="palette">
        
    <service name="host" promote="host"/>
    <service name="path" promote="path"/>
    <service name="params" promote="params"/>
    <service name="param" promote="param"/>
    <service name="user" promote="user"/>
    <service name="email" promote="email"/>
    <service name="url" promote="url"/>
    <service name="get" promote="get"/>
    <service name="post" promote="post"/>
    <service name="put" promote="put"/>
    <service name="delete" promote="delete"/>

    <component name="host" t:title="host" t:color="green1">
        <t:implementation.python script="nuvem/host.py"/>
        <service name="host"/>
        <property name="host" t:visible="false"></property>
    </component>
    
    <component name="path" t:title="path" t:color="green1">
        <t:implementation.python script="nuvem/path.py"/>
        <service name="path"/>
        <property name="path" t:visible="false"></property>
    </component>
    
    <component name="params" t:title="?params" t:color="green1">
        <t:implementation.python script="nuvem/params.py"/>
        <service name="params"/>
        <property name="query" t:visible="false"></property>
    </component>
    
    <component name="param" t:title="?param" t:color="green1">
        <t:implementation.python script="nuvem/param.py"/>
        <service name="param"/>
        <property name="name">x</property>
        <property name="query" t:visible="false"></property>
    </component>
    
    <component name="user" t:title="user" t:color="green1">
        <t:implementation.python script="nuvem/user.py"/>
        <service name="user"/>
        <property name="user" t:visible="false"></property>
    </component>
    
    <component name="email" t:title="email" t:color="green1">
        <t:implementation.python script="nuvem/email.py"/>
        <service name="email"/>
        <property name="email" t:visible="false"></property>
    </component>
    
    <component name="url" t:title="url" t:color="green1">
        <t:implementation.python script="nuvem/url.py"/>
        <service name="url"/>
        <reference name="address"/>
        <reference name="args"/>
    </component>
    
    <component name="get" t:title="get" t:color="green1">
        <implementation.cpp path="lib/http" library="libhttpget"/>
        <service name="get"/>
        <reference name="url"/>
    </component>
    
    <component name="post" t:title="post **" t:color="green1">
        <implementation.cpp path="lib/http" library="libhttppost"/>
        <service name="post"/>
        <reference name="url"/>
        <reference name="content"/>
    </component>
    
    <component name="put" t:title="put **" t:color="green1">
        <implementation.cpp path="lib/http" library="libhttpput"/>
        <service name="put"/>
        <reference name="url"/>
        <reference name="content"/>
    </component>
    
    <component name="delete" t:title="delete" t:color="green1">
        <implementation.cpp path="lib/http" library="libhttpdelete"/>
        <service name="delete"/>
        <reference name="url"/>
    </component>
    
</composite>