View Javadoc

    1   package org.codehaus.xfire.transport;
    2
    3
    4   /***
    5    * Creates channels. Transports implement this interface.
    6    *
    7    * @see org.codehaus.xfire.transport.Transport
    8    * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
    9    */
    10  public interface ChannelFactory
    11  {
    12      /***
    13       * Create a channel with a new unique URI.
    14       *
    15       * @return The channel.
    16       * @throws Exception Occurs if there was an exception creating or opening the channel.
    17       */
    18      Channel createChannel() throws Exception;
    19
    20      /***
    21       * Create a channel with a specified URI.
    22       *
    23       * @param uri The URI which represents this Channel's endpoint.
    24       * @return The channel.
    25       * @throws Exception Occurs if there was an exception creating or opening the channel.
    26       */
    27      Channel createChannel(String uri) throws Exception;
    28  }