This project has retired. For details please refer to its Attic page.
Transport 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.v3.client.transport;
18  
19  import org.apache.juddi.v3_service.JUDDIApiPortType;
20  import org.uddi.v3_service.UDDICustodyTransferPortType;
21  import org.uddi.v3_service.UDDIInquiryPortType;
22  import org.uddi.v3_service.UDDIPublicationPortType;
23  import org.uddi.v3_service.UDDISecurityPortType;
24  import org.uddi.v3_service.UDDISubscriptionListenerPortType;
25  import org.uddi.v3_service.UDDISubscriptionPortType;;
26  
27  /**
28   * This abstract class defined the basic model for accessing different transport mechanisms
29   * using the same interfaces for UDDIv3.
30   * @see JAXWSTransport
31    * @see InVMTransport
32   * 
33   */
34  public abstract class Transport {
35  	
36  	public final static String DEFAULT_NODE_NAME             = "default";
37  	
38  	public abstract UDDIInquiryPortType getUDDIInquiryService(String endpointURL)           throws TransportException;
39  	public abstract UDDISecurityPortType getUDDISecurityService(String endpointURL)         throws TransportException;
40  	public abstract UDDIPublicationPortType getUDDIPublishService(String endpointURL)       throws TransportException;
41  	public abstract UDDISubscriptionPortType getUDDISubscriptionService(String endpointURL) throws TransportException;
42  	public abstract UDDICustodyTransferPortType getUDDICustodyTransferService(String endpointURL) throws TransportException;
43  	public abstract UDDISubscriptionListenerPortType getUDDISubscriptionListenerService(String endpointURL) throws TransportException;
44  	public abstract JUDDIApiPortType getJUDDIApiService(String endpointURL) throws TransportException;
45  	
46  	public UDDIInquiryPortType getUDDIInquiryService() throws TransportException {
47  		return getUDDIInquiryService(null);
48  	}
49  	public UDDISecurityPortType getUDDISecurityService() throws TransportException {
50  		return getUDDISecurityService(null);
51  	}
52  	public UDDIPublicationPortType getUDDIPublishService() throws TransportException {
53  		return getUDDIPublishService(null);
54  	}
55  	public UDDISubscriptionPortType getUDDISubscriptionService() throws TransportException {
56  		return getUDDISubscriptionService(null);
57  	}
58  	public UDDISubscriptionListenerPortType getUDDISubscriptionListenerService() throws TransportException {
59  		return getUDDISubscriptionListenerService(null);
60  	}
61  	public UDDICustodyTransferPortType getUDDICustodyTransferService() throws TransportException {
62  		return getUDDICustodyTransferService(null);
63  	}
64  	public JUDDIApiPortType getJUDDIApiService() throws TransportException {
65  		return getJUDDIApiService(null);
66  	}
67  }