KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > wsdl > WSDLService


1 /*
2  * Copyright 2004,2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.wsdl;
17
18 import javax.xml.namespace.QName JavaDoc;
19 import java.util.HashMap JavaDoc;
20
21 /**
22  * @author chathura@opensource.lk
23  */

24 public interface WSDLService extends Component {
25     public static final String JavaDoc STYLE_RPC = "rpc";
26     public static final String JavaDoc STYLE_DOC = "doc";
27     public static final String JavaDoc STYLE_MSG = "msg";
28     /**
29      * Method getEndpoints
30      *
31      * @return
32      */

33     public HashMap JavaDoc getEndpoints();
34
35     /**
36      * Method setEndpoints
37      *
38      * @param endpoints
39      */

40     public void setEndpoints(HashMap JavaDoc endpoints);
41
42     /**
43      * Will add a WSDLEndpoint object to the WOM keyed with qname;
44      *
45      * @param endpoint
46      */

47     public void setEndpoint(WSDLEndpoint endpoint);
48
49     /**
50      * Endpoint will be retrived by its qName.
51      *
52      * @param qName qName of the Service
53      * @return WSDLService Object or will throw an WSDLProcessingException in the case of object not found.
54      */

55     public WSDLEndpoint getEndpoint(QName JavaDoc qName);
56
57     /**
58      * Method getName
59      *
60      * @return
61      */

62     public QName JavaDoc getName();
63
64     /**
65      * Method setName
66      *
67      * @param name
68      */

69     public void setName(QName JavaDoc name);
70
71     /**
72      * If the Name of the <code>WSDLService</code> is not set a
73      * <code>WSDLProcessingException</code> will be thrown.
74      *
75      * @return Target Namespace as a <code>String</code>
76      */

77     public String JavaDoc getNamespace();
78
79     /**
80      * Method getServiceInterface
81      *
82      * @return
83      */

84     public WSDLInterface getServiceInterface();
85
86     /**
87      * Method setServiceInterface
88      *
89      * @param serviceInterface
90      */

91     public void setServiceInterface(WSDLInterface serviceInterface);
92 }
93
Popular Tags