org.codehaus.xfire.transport
Class AbstractTransport
java.lang.Object
org.codehaus.xfire.AbstractContext
org.codehaus.xfire.handler.AbstractHandlerSupport
org.codehaus.xfire.transport.AbstractTransport
- All Implemented Interfaces:
- HandlerSupport, ChannelFactory, Transport
- Direct Known Subclasses:
- DeadLetterTransport, HttpTransport, LocalTransport
public abstract class AbstractTransport
- extends AbstractHandlerSupport
- implements Transport
- Since:
- Dec 21, 2004
- Author:
- Dan Diephouse
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTransport
public AbstractTransport()
dispose
public void dispose()
- Disposes all the existing channels.
- Specified by:
dispose
in interface Transport
createChannel
public Channel createChannel()
throws java.lang.Exception
- Description copied from interface:
ChannelFactory
- Create a channel with a new unique URI.
- Specified by:
createChannel
in interface ChannelFactory
- Returns:
- The channel.
- Throws:
java.lang.Exception
- Occurs if there was an exception creating or opening the channel.
createChannel
public Channel createChannel(java.lang.String uri)
throws java.lang.Exception
- Description copied from interface:
ChannelFactory
- Create a channel with a specified URI.
- Specified by:
createChannel
in interface ChannelFactory
- Parameters:
uri
- The URI which represents this Channel's endpoint.
- Returns:
- The channel.
- Throws:
java.lang.Exception
- Occurs if there was an exception creating or opening the channel.
close
public void close(Channel c)
- Specified by:
close
in interface ChannelFactory
getChannelMap
protected java.util.Map getChannelMap()
getSupportedBindings
public java.lang.String[] getSupportedBindings()
- Specified by:
getSupportedBindings
in interface Transport
createNewChannel
protected abstract Channel createNewChannel(java.lang.String uri)
getUriPrefix
protected abstract java.lang.String getUriPrefix()
getKnownUriSchemes
protected abstract java.lang.String[] getKnownUriSchemes()
isUriSupported
public boolean isUriSupported(java.lang.String uri)
- Specified by:
isUriSupported
in interface Transport
findBinding
public Binding findBinding(MessageContext context,
Service service)
- Specified by:
findBinding
in interface Transport
Copyright © 2004-2010. All Rights Reserved.