KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > transports > TransportFactory


1 package org.objectweb.celtix.transports;
2
3 import java.io.IOException JavaDoc;
4
5 import javax.wsdl.WSDLException;
6
7 import org.objectweb.celtix.Bus;
8 import org.objectweb.celtix.bindings.ClientBinding;
9 import org.objectweb.celtix.ws.addressing.EndpointReferenceType;
10
11 /**
12  * The TransportFactory provides methods to create client and server transports.
13  */

14 public interface TransportFactory {
15     
16     /**
17      * Initializes this <code>TransportFactory</code>.
18      *
19      * @param bus The bus class this TransportFactory will use.
20      */

21     void init(Bus bus);
22         
23     /**
24      * Returns a newly created <code>ServerTransport</code>.
25      *
26      * @param address the endpoint reference used by the <code>ServerTransport</code>.
27      * @return ServerTransport the newly created <code>ServerTransport</code>.
28      * @throws WSDLException If there is an error creating the transport.
29      */

30     ServerTransport createServerTransport(EndpointReferenceType address)
31         throws WSDLException, IOException JavaDoc;
32
33     /**
34      * Returns a newly created transient <code>ServerTransport</code>.
35      *
36      * @param address the endpoint reference used by the <code>ServerTransport</code>.
37      * @return ServerTransport the newly created server transport.
38      * @throws WSDLException If there is an error creating the transport.
39      */

40     ServerTransport createTransientServerTransport(EndpointReferenceType address)
41         throws WSDLException, IOException JavaDoc;
42     
43     /**
44      * Returns a newly created <code>ClientTransport</code>.
45      *
46      * @param address the endpoint reference used by the <code>ClientTransport</code>.
47      * @param binding the client binding
48      * @return ClientTransport the newly created client transport.
49      * @throws WSDLException If there is an error creating the transport.
50      */

51     ClientTransport createClientTransport(EndpointReferenceType address,
52                                           ClientBinding binding)
53         throws WSDLException, IOException JavaDoc;
54 }
55
Popular Tags