org.codehaus.xfire.transport
Class AbstractTransport

java.lang.Object
  extended by org.codehaus.xfire.AbstractContext
      extended by org.codehaus.xfire.handler.AbstractHandlerSupport
          extended by 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

Constructor Summary
AbstractTransport()
           
 
Method Summary
 void close(Channel c)
           
 Channel createChannel()
          Create a channel with a new unique URI.
 Channel createChannel(java.lang.String uri)
          Create a channel with a specified URI.
protected abstract  Channel createNewChannel(java.lang.String uri)
           
 void dispose()
          Disposes all the existing channels.
 Binding findBinding(MessageContext context, Service service)
           
protected  java.util.Map getChannelMap()
           
protected abstract  java.lang.String[] getKnownUriSchemes()
           
 java.lang.String[] getSupportedBindings()
           
protected abstract  java.lang.String getUriPrefix()
           
 boolean isUriSupported(java.lang.String uri)
           
 
Methods inherited from class org.codehaus.xfire.handler.AbstractHandlerSupport
addFaultHandler, addInHandler, addOutHandler, getFaultHandlers, getInHandlers, getOutHandlers, setFaultHandlers, setInHandlers, setOutHandlers
 
Methods inherited from class org.codehaus.xfire.AbstractContext
getProperty, removeProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.xfire.handler.HandlerSupport
getFaultHandlers, getInHandlers, getOutHandlers
 

Constructor Detail

AbstractTransport

public AbstractTransport()
Method Detail

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-2011. All Rights Reserved.