View Javadoc

1   /*
2    * Copyright 2001-2004 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  
17  package org.apache.geronimo.ews.ws4j2ee.context.webservices.server;
18  
19  import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFContext;
20  import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFDocument;
21  import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFPortComponent;
22  import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFWebserviceDescription;
23  import org.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault;
24  
25  /***
26   * @author hemapani@opensource.lk
27   */
28  public abstract class AbstractWSCFContext implements WSCFContext {
29      protected WSCFWebserviceDescription wscfdWsDesxription;
30      protected WSCFPortComponent wscfport;
31      /***
32       * This reference will be the pointer to the element tree.
33       */
34      protected WSCFDocument document;
35  
36      /***
37       * @return
38       */
39      public WSCFWebserviceDescription getWscfdWsDesxription() {
40          return wscfdWsDesxription;
41      }
42  
43      /***
44       * @return
45       */
46      public WSCFPortComponent getWscfport() {
47          return wscfport;
48      }
49  
50      /***
51       * @param description
52       */
53      public void setWscfdWsDescription(WSCFWebserviceDescription description) {
54          wscfdWsDesxription = description;
55      }
56  
57      /***
58       * @param component
59       */
60      public void setWscfport(WSCFPortComponent component) {
61          wscfport = component;
62      }
63  
64      /***
65       * Interface support method. This will get the description element of the webservices.xml
66       */
67      public String getDescription() {
68          return this.document.getWebservices().getDescription();
69      }
70  
71      /***
72       * Interface support method. This will get the display name element of the webservices.xml
73       */
74      public String getDisplayName() {
75          return this.document.getWebservices().getDisplayName();
76      }
77  
78      /***
79       * Interface support method. This will get the small icon element of the webservices.xml
80       */
81      public String getSmallIcon() {
82          return this.document.getWebservices().getSmallIcon();
83      }
84  
85      /***
86       * Interface support method. This will get the large icon element of the webservices.xml
87       */
88      public String getLargeIcon() {
89          return this.document.getWebservices().getLargeIcon();
90      }
91  
92      /***
93       * Interface support method. This will get the webservice description elements of the webservices.xml as an array.
94       */
95      public WSCFWebserviceDescription[] getWebServicesDescription() {
96          return this.document.getWebservices().getWebServiceDescriptions();
97      }
98  
99      public void serialize(java.io.Writer out) throws GenerationFault {
100         throw new UnsupportedOperationException();
101     }
102 
103 }