org.jdiameter.client.api.io
Interface ITransportLayerFactory

All Superinterfaces:
org.jdiameter.api.Wrapper
All Known Subinterfaces:
ITransportLayerFactory
All Known Implementing Classes:
TransportLayerFactory, TransportLayerFactory

public interface ITransportLayerFactory
extends org.jdiameter.api.Wrapper

Factory of Network Layer elements. Configuration and message parser instances injection by constructor


Method Summary
 IConnection createConnection(java.net.InetAddress inetAddress, int port, IConnectionListener listener, java.lang.String ref)
          Create new IConnection instance with predefined parameters
 IConnection createConnection(java.net.InetAddress inetAddress, int port, java.lang.String ref)
          Create new IConnection instance with predefined parameters
 
Methods inherited from interface org.jdiameter.api.Wrapper
isWrapperFor, unwrap
 

Method Detail

createConnection

IConnection createConnection(java.net.InetAddress inetAddress,
                             int port,
                             java.lang.String ref)
                             throws TransportException
Create new IConnection instance with predefined parameters

Parameters:
inetAddress - destination host address
port - destination port address
ref - reference to additional parameters
Returns:
IConnection instance
Throws:
TransportException

createConnection

IConnection createConnection(java.net.InetAddress inetAddress,
                             int port,
                             IConnectionListener listener,
                             java.lang.String ref)
                             throws TransportException
Create new IConnection instance with predefined parameters

Parameters:
inetAddress - destination host address
port - destination port address
listener - connection listener instance
ref - reference to additional parameters
Returns:
IConnection instance
Throws:
TransportException


Copyright © 2008. All Rights Reserved.