com.sentilla.net
Class SenderDriver

java.lang.Object
  extended by com.sentilla.system.DriverAdapter
      extended by com.sentilla.net.SenderDriver
All Implemented Interfaces:
Driver
Direct Known Subclasses:
SenderDriver

public abstract class SenderDriver
extends DriverAdapter

Driver class to creating a platform independent Sender object.

See Also:
Sender

Field Summary
 
Fields inherited from class com.sentilla.system.DriverAdapter
m_nextDriver
 
Constructor Summary
SenderDriver()
           
 
Method Summary
static Sender create(Addressable addr, String name)
          Returns a sender for protocol "name".
static Sender create(String name)
           
static Sender create(String driver, Addressable addr, String name)
          Returns a sender for protocol "name" and address "addr".
abstract  Sender newSender(Addressable addr, String name)
           
 
Methods inherited from class com.sentilla.system.DriverAdapter
getDriverName, getNextDriver, setNextDriver
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SenderDriver

public SenderDriver()
Method Detail

newSender

public abstract Sender newSender(Addressable addr,
                                 String name)

create

public static Sender create(String driver,
                            Addressable addr,
                            String name)
                     throws ProtocolNotFoundException
Returns a sender for protocol "name" and address "addr".

Parameters:
addr - address to send messages to
name - name of protocol to use
Returns:
new sender for protocol "name"
Throws:
UnsupportedAddressException - if the address type is not supported by protocol "name"
ProtocolNotFoundException
See Also:
Sender, Addressable, ProtocolNotFoundException, UnsupportedAddressException

create

public static Sender create(Addressable addr,
                            String name)
                     throws ProtocolNotFoundException
Returns a sender for protocol "name".

Parameters:
name - name of protocol to use
Returns:
new sender for protocol "name"
Throws:
ProtocolNotFoundException - If the protocol specified is not found (or supported) on this platform
See Also:
Sender, ProtocolNotFoundException

create

public static Sender create(String name)
                     throws ProtocolNotFoundException
Throws:
ProtocolNotFoundException


Copyright © 2007 Sentilla Corporation. All Rights Reserved.