This project has retired. For details please refer to its Attic page.
UDDIInquiryService xref
View Javadoc
1   /*
2    * Copyright 2001-2009 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.juddi.rmi;
18  
19  import java.rmi.RemoteException;
20  import java.rmi.server.UnicastRemoteObject;
21  
22  import org.apache.juddi.api.impl.UDDIInquiryImpl;
23  import org.uddi.api_v3.BindingDetail;
24  import org.uddi.api_v3.BusinessDetail;
25  import org.uddi.api_v3.BusinessList;
26  import org.uddi.api_v3.FindBinding;
27  import org.uddi.api_v3.FindBusiness;
28  import org.uddi.api_v3.FindRelatedBusinesses;
29  import org.uddi.api_v3.FindService;
30  import org.uddi.api_v3.FindTModel;
31  import org.uddi.api_v3.GetBindingDetail;
32  import org.uddi.api_v3.GetBusinessDetail;
33  import org.uddi.api_v3.GetOperationalInfo;
34  import org.uddi.api_v3.GetServiceDetail;
35  import org.uddi.api_v3.GetTModelDetail;
36  import org.uddi.api_v3.OperationalInfos;
37  import org.uddi.api_v3.RelatedBusinessesList;
38  import org.uddi.api_v3.ServiceDetail;
39  import org.uddi.api_v3.ServiceList;
40  import org.uddi.api_v3.TModelDetail;
41  import org.uddi.api_v3.TModelList;
42  import org.uddi.v3_service.UDDIInquiryPortType;
43  /**
44   * UDDIInquiryPortType wrapper so it can be exposed as a service over RMI.
45   * 
46   * @author <a href="mailto:kstam@apache.org">Kurt T Stam</a>
47   *
48   */
49  public class UDDIInquiryService extends UnicastRemoteObject implements UDDIInquiryPortType {
50  
51  	private static final long serialVersionUID = -8384112899703963130L;
52  	private transient UDDIInquiryImpl inquiry = new UDDIInquiryImpl();
53  
54  	protected UDDIInquiryService(int port) throws RemoteException {
55  		super(port);
56  	}
57  
58  	public BindingDetail findBinding(FindBinding body)
59  			throws RemoteException {
60  		return inquiry.findBinding(body);
61  	}
62  
63  	public BusinessList findBusiness(FindBusiness body)
64  			throws RemoteException {
65  		return inquiry.findBusiness(body);
66  	}
67  
68  	public RelatedBusinessesList findRelatedBusinesses(
69  			FindRelatedBusinesses body) throws RemoteException {
70  		return inquiry.findRelatedBusinesses(body);
71  	}
72  
73  	public ServiceList findService(FindService body)
74  			throws RemoteException {
75  		return inquiry.findService(body);
76  	}
77  
78  	public TModelList findTModel(FindTModel body)
79  			throws RemoteException {
80  		return inquiry.findTModel(body);
81  	}
82  
83  	public BindingDetail getBindingDetail(GetBindingDetail body)
84  			throws RemoteException {
85  		return inquiry.getBindingDetail(body);
86  	}
87  
88  	public BusinessDetail getBusinessDetail(GetBusinessDetail body)
89  			throws RemoteException {
90  		return inquiry.getBusinessDetail(body);
91  	}
92  
93  	public OperationalInfos getOperationalInfo(GetOperationalInfo body)
94  			throws RemoteException {
95  		return inquiry.getOperationalInfo(body);
96  	}
97  
98  	public ServiceDetail getServiceDetail(GetServiceDetail body)
99  			throws RemoteException {
100 		return inquiry.getServiceDetail(body);
101 	}
102 
103 	public TModelDetail getTModelDetail(GetTModelDetail body)
104 			throws RemoteException {
105 		return inquiry.getTModelDetail(body);
106 	}
107 
108 }