KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > inheritance > InheritanceTestSoapBindingImpl


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 test.wsdl.inheritance;
18
19 /**
20  * This class contains the remote method implementations for the
21  * inheritance test.
22  *
23  * @version 1.00 21 Jan 2002
24  * @author Brent Ulbricht
25  */

26 public class InheritanceTestSoapBindingImpl implements test.wsdl.inheritance.InheritancePortType {
27
28     /**
29      * This method will return a hard coded value to the client depending on the value of the
30      * tickerSymbol received.
31      *
32      * The getLastTradePrice originates from the InheritancePortType interface.
33      */

34     public float getLastTradePrice(java.lang.String JavaDoc tickerSymbol) throws java.rmi.RemoteException JavaDoc {
35
36         if (tickerSymbol.equals("SOAP")) {
37             return 20.25F;
38         } else {
39             return 0.00F;
40         }
41
42     } // getLastTradePrice
43

44     /**
45      * This method will return a hard coded value to the client depending on the value of the
46      * tickerSymbol received.
47      *
48      * The getRealtimeLastTradePrice originates from the StockQuoteProvider interface.
49      */

50     public float getRealtimeLastTradePrice(java.lang.String JavaDoc tickerSymbol) throws java.rmi.RemoteException JavaDoc {
51         
52         if (tickerSymbol.equals("AXIS")) {
53             return 21.75F;
54         } else {
55             return 0.00F;
56         }
57
58     } // getRealtimeLastTradePrice
59

60 } // End class InheritanceTestSoapBindingImpl
61
Popular Tags