org.jdiameter.client.impl.transport
Class TransportLayerFactory
java.lang.Object
org.jdiameter.client.impl.transport.TransportLayerFactory
- All Implemented Interfaces:
- org.jdiameter.api.Wrapper, ITransportLayerFactory
- Direct Known Subclasses:
- TransportLayerFactory
public class TransportLayerFactory
- extends java.lang.Object
- implements ITransportLayerFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connectionClass
protected java.lang.Class<IConnection> connectionClass
constructorIAi
protected java.lang.reflect.Constructor<IConnection> constructorIAi
constructorIAiCL
protected java.lang.reflect.Constructor<IConnection> constructorIAiCL
parser
protected IMessageParser parser
config
protected org.jdiameter.api.Configuration config
TransportLayerFactory
public TransportLayerFactory(org.jdiameter.api.Configuration config,
IMessageParser parser)
throws TransportException
- Throws:
TransportException
createConnection
public IConnection createConnection(java.net.InetAddress inetAddress,
int port,
java.lang.String ref)
throws TransportException
- Description copied from interface:
ITransportLayerFactory
- Create new IConnection instance with predefined parameters
- Specified by:
createConnection in interface ITransportLayerFactory
- Parameters:
inetAddress - destination host addressport - destination port addressref - reference to additional parameters
- Returns:
- IConnection instance
- Throws:
TransportException
createConnection
public IConnection createConnection(java.net.InetAddress inetAddress,
int port,
IConnectionListener listener,
java.lang.String ref)
throws TransportException
- Description copied from interface:
ITransportLayerFactory
- Create new IConnection instance with predefined parameters
- Specified by:
createConnection in interface ITransportLayerFactory
- Parameters:
inetAddress - destination host addressport - destination port addresslistener - connection listener instanceref - reference to additional parameters
- Returns:
- IConnection instance
- Throws:
TransportException
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> aClass)
throws org.jdiameter.api.InternalException
- Specified by:
isWrapperFor in interface org.jdiameter.api.Wrapper
- Throws:
org.jdiameter.api.InternalException
unwrap
public <T> T unwrap(java.lang.Class<T> aClass)
throws org.jdiameter.api.InternalException
- Specified by:
unwrap in interface org.jdiameter.api.Wrapper
- Throws:
org.jdiameter.api.InternalException
Copyright © 2008. All Rights Reserved.