public class SimpleNamingConnection extends Object implements NamingConnection
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
connectTimeout
Defines in milliseconds the timeout used during socket connection.
|
protected Hashtable |
env |
protected String |
hostName |
protected fr.dyade.aaa.jndi2.msg.IOControl |
ioCtrl |
protected int |
port |
(package private) static String |
SOCKET_FACTORY_PROPERTY
Name of the property that allow to define the SocketFactory class used for
NamingConnection.
|
(package private) fr.dyade.aaa.common.net.SocketFactory |
socketFactory
Allows to define a specific factory for socket in order to by-pass
compatibility problem between JDK version.
|
(package private) static String |
TIMEOUT_PROPERTY
Name of the property that allow the configuration of the timeout
during connect (by default 0, infinite timeout).
|
| Constructor and Description |
|---|
SimpleNamingConnection() |
SimpleNamingConnection(String hostName,
int port,
Hashtable env) |
| Modifier and Type | Method and Description |
|---|---|
NamingConnection |
cloneConnection() |
Hashtable |
getEnvironment() |
String |
getHostName() |
int |
getPort() |
void |
init(String hostName,
int port,
Hashtable env) |
fr.dyade.aaa.jndi2.msg.JndiReply |
invoke(fr.dyade.aaa.jndi2.msg.JndiRequest request)
An invoke opens a connection and closes it
when the result has been returned.
|
private void |
open() |
String |
toString() |
fr.dyade.aaa.common.net.SocketFactory socketFactory
SocketFactory13 for JDK prior to 1.4.
This value can be adjusted by setting
fr.dyade.aaa.jndi2.client.SocketFactory property.static final String SOCKET_FACTORY_PROPERTY
int connectTimeout
fr.dyade.aaa.jndi2.client.ConnectTimeout property.
static final String TIMEOUT_PROPERTY
protected String hostName
protected int port
protected Hashtable env
protected fr.dyade.aaa.jndi2.msg.IOControl ioCtrl
public final String getHostName()
public final int getPort()
public fr.dyade.aaa.jndi2.msg.JndiReply invoke(fr.dyade.aaa.jndi2.msg.JndiRequest request)
throws NamingException
invoke in interface NamingConnectionNamingExceptionprivate void open()
throws NamingException
NamingExceptionpublic Hashtable getEnvironment()
getEnvironment in interface NamingConnectionpublic NamingConnection cloneConnection()
cloneConnection in interface NamingConnectionCopyright © 2019 ScalAgent D.T.. All Rights Reserved.