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 package org.seasar.axis.server;
47
48 import java.util.ArrayList;
49 import java.util.Iterator;
50 import java.util.List;
51
52 import org.apache.axis.deployment.wsdd.WSDDConstants;
53
54 /***
55 * diconファイル中でAxisサービスの情報を設定するために使われます。
56 *
57 * @author koichik
58 */
59 public class ServiceDef {
60
61 protected String provider = WSDDConstants.PROVIDER_RPC;
62 protected Class serviceType;
63 protected String allowedMethods;
64 protected final List typeMappingDefs = new ArrayList();
65
66 /***
67 * プロバイダを返します。
68 *
69 * @return Returns the providerType.
70 */
71 public String getProvider() {
72 return provider;
73 }
74
75 /***
76 * プロバイダを指定します。
77 *
78 * @param providerType
79 * The providerType to set.
80 */
81 public void setProvider(final String providerType) {
82 this.provider = providerType;
83 }
84
85 /***
86 * サービスの型を返します。
87 *
88 * @return Returns the serviceType.
89 */
90 public Class getServiceType() {
91 return serviceType;
92 }
93
94 /***
95 * サービスの型を設定します。
96 *
97 * @param serviceType
98 * The serviceType to set.
99 */
100 public void setServiceType(final Class serviceType) {
101 this.serviceType = serviceType;
102 }
103
104 /***
105 * サービスとして公開するメソッドを返します。
106 *
107 * @return Returns the allowedMethods.
108 */
109 public String getAllowedMethods() {
110 return allowedMethods;
111 }
112
113 /***
114 * サービスとして公開するメソッドを設定します。
115 *
116 * @param allowedMethods
117 * The allowedMethods to set.
118 */
119 public void setAllowedMethods(final String allowedMethods) {
120 this.allowedMethods = allowedMethods;
121 }
122
123 /***
124 * タイプマッピングを追加します。
125 *
126 * @param typeMappingDef
127 */
128 public void addTypeMapping(final TypeMappingDef typeMappingDef) {
129 typeMappingDefs.add(typeMappingDef);
130 }
131
132 /***
133 * タイプマッピングのイテレータを返します。
134 *
135 * @return Returns the TypeMappings.
136 */
137 public Iterator getTypeMappings() {
138 return typeMappingDefs.iterator();
139 }
140 }