KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > wsrp > bind > WSRP_v1_ServiceDescription_Binding_SOAPImpl


1 /*
2  * Copyright 2001-2003 The eXo platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  *
5  * Created on 15 janv. 2004
6  */

7 package org.exoplatform.services.wsrp.bind;
8
9 import java.rmi.RemoteException JavaDoc;
10 import org.exoplatform.container.PortalContainer;
11 import org.exoplatform.services.wsrp.intf.WSRP_v1_ServiceDescription_PortType;
12 import org.exoplatform.services.wsrp.producer.ServiceDescriptionInterface;
13 import org.exoplatform.services.wsrp.type.InvalidRegistrationFault;
14 import org.exoplatform.services.wsrp.type.OperationFailedFault;
15 import org.exoplatform.services.wsrp.type.ServiceDescription;
16 import org.exoplatform.services.wsrp.type.ServiceDescriptionRequest;
17
18
19 /**
20  * @author Mestrallet Benjamin
21  * benjmestrallet@users.sourceforge.net
22  */

23 public class WSRP_v1_ServiceDescription_Binding_SOAPImpl implements WSRP_v1_ServiceDescription_PortType {
24
25   private ServiceDescriptionInterface serviceDescriptionInterface;
26
27   public WSRP_v1_ServiceDescription_Binding_SOAPImpl() {
28     PortalContainer manager = PortalContainer.getInstance();
29     serviceDescriptionInterface = (ServiceDescriptionInterface) manager.
30         getComponentInstanceOfType(ServiceDescriptionInterface.class);
31   }
32
33   public ServiceDescription getServiceDescription(ServiceDescriptionRequest getServiceDescription)
34       throws RemoteException JavaDoc, InvalidRegistrationFault, OperationFailedFault {
35     return serviceDescriptionInterface.getServiceDescription(getServiceDescription.getRegistrationContext(),
36                                                              getServiceDescription.getDesiredLocales());
37   }
38
39 }
40
Popular Tags