fr.dyade.aaa.jndi2.client
Class SimpleNamingConnection

java.lang.Object
  extended byfr.dyade.aaa.jndi2.client.SimpleNamingConnection
All Implemented Interfaces:
NamingConnection

public class SimpleNamingConnection
extends java.lang.Object
implements NamingConnection


Constructor Summary
SimpleNamingConnection(java.lang.String hostName, int port, java.util.Hashtable env)
           
 
Method Summary
 NamingConnection cloneConnection()
           
 java.util.Hashtable getEnvironment()
           
 java.lang.String getHostName()
           
 int getPort()
           
 JndiReply invoke(JndiRequest request)
          An invoke opens a connection and closes it when the result has been returned.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleNamingConnection

public SimpleNamingConnection(java.lang.String hostName,
                              int port,
                              java.util.Hashtable env)
Method Detail

getHostName

public final java.lang.String getHostName()

getPort

public final int getPort()

invoke

public JndiReply invoke(JndiRequest request)
                 throws javax.naming.NamingException
An invoke opens a connection and closes it when the result has been returned. The overhead of the connection opening could be avoided if the server could close connections. Such a protocol would change the client as well.

Specified by:
invoke in interface NamingConnection
Throws:
javax.naming.NamingException

getEnvironment

public java.util.Hashtable getEnvironment()
Specified by:
getEnvironment in interface NamingConnection

cloneConnection

public NamingConnection cloneConnection()
Specified by:
cloneConnection in interface NamingConnection

toString

public java.lang.String toString()


Copyright ? 2004 Scalagent - All rights reserved