Class SimpleNamingConnection

    • Field Detail

      • socketFactory

        SocketFactory socketFactory
        Allows to define a specific factory for socket in order to by-pass compatibility problem between JDK version. Currently there is two factories, The default factory one for JDK since 1.4, and SocketFactory13 for JDK prior to 1.4. This value can be adjusted by setting fr.dyade.aaa.jndi2.client.SocketFactory property.
      • SOCKET_FACTORY_PROPERTY

        static final String SOCKET_FACTORY_PROPERTY
        Name of the property that allow to define the SocketFactory class used for NamingConnection.
        See Also:
        Constant Field Values
      • connectTimeout

        int connectTimeout
        Defines in milliseconds the timeout used during socket connection. The timeout must be > 0. A timeout of zero is interpreted as an infinite timeout. Default value is 0. This value can be adjusted by setting fr.dyade.aaa.jndi2.client.ConnectTimeout property.
      • TIMEOUT_PROPERTY

        static final String TIMEOUT_PROPERTY
        Name of the property that allow the configuration of the timeout during connect (by default 0, infinite timeout).
        See Also:
        Constant Field Values
      • hostName

        protected String hostName
      • port

        protected int port
    • Constructor Detail

      • SimpleNamingConnection

        public SimpleNamingConnection()
      • SimpleNamingConnection

        public SimpleNamingConnection​(String hostName,
                                      int port,
                                      Hashtable env)