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 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) 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) |
JndiReply |
invoke(JndiRequest request)
An invoke opens a connection and closes it
when the result has been returned.
|
private void |
open() |
String |
toString() |
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 IOControl ioCtrl
public final String getHostName()
public final int getPort()
public JndiReply invoke(JndiRequest request) throws NamingException
invoke
in interface NamingConnection
NamingException
private void open() throws NamingException
NamingException
public Hashtable getEnvironment()
getEnvironment
in interface NamingConnection
public NamingConnection cloneConnection()
cloneConnection
in interface NamingConnection
Copyright © 2020 ScalAgent D.T.. All rights reserved.