View Javadoc

1   package org.codehaus.xfire.transport;
2   
3   import java.util.Collection;
4   
5   
6   /***
7    * Registers transports for the SOAP services.
8    * 
9    * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
10   */
11  public interface TransportManager
12  {
13      String ROLE = TransportManager.class.getName();
14  
15      void register( Transport transport );
16      
17      void unregister( Transport transport );
18      
19      Transport getTransport( String id );
20      
21      /***
22       * Get the transports applicable to a particular service.
23       * @param service
24       * @return
25       */
26      Collection getTransports(String service);
27      
28      void enableAll(String service);
29      
30      void disableAll(String service);
31      
32      void enable( String transport, String service );
33  
34      void disable( String transport, String service );
35  
36      /***
37       * Determine if a transport is enabled for a particular service.
38       * 
39       * @param serviceName The name of the service.
40       * @param name The name of the transport.
41       * @return
42       */
43      boolean isEnabled(String serviceName, String name);
44  }