fr.dyade.aaa.jndi2.soap
Class JndiSoapService

java.lang.Object
  extended byfr.dyade.aaa.jndi2.soap.JndiSoapService

public class JndiSoapService
extends java.lang.Object

The JndiSoapService class implements a JNDI access through a SOAP service.

Actually, this service is a "classical" JNDI client accessing the JNDI server.


Constructor Summary
JndiSoapService()
           
 
Method Summary
 void bind(java.lang.String name, java.util.Hashtable map)
          Service method: decodes and binds an object.
 void init(java.lang.String jndiHost, int jndiPort)
          Initializes the JndiSoapService.
 java.util.Hashtable lookup(java.lang.String name)
          Service method: retrieves an object and returns it coded.
 void rebind(java.lang.String name, java.util.Hashtable map)
          Service method: decodes and rebinds an object.
 void unbind(java.lang.String name)
          Service method: unbinds an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiSoapService

public JndiSoapService()
Method Detail

init

public void init(java.lang.String jndiHost,
                 int jndiPort)
          throws javax.naming.NamingException
Initializes the JndiSoapService.

Parameters:
jndiHost - Host hosting the JNDI server.
jndiPort - JNDI server's port.
Throws:
javax.naming.NamingException - If the JNDI server is not reachable or if the parameters are invalid.

bind

public void bind(java.lang.String name,
                 java.util.Hashtable map)
          throws javax.naming.NamingException
Service method: decodes and binds an object.

Parameters:
name - Name to use for binding the object.
map - Coded object.
Throws:
javax.naming.NamingException - If the binding fails, or if the object could not be decoded.

rebind

public void rebind(java.lang.String name,
                   java.util.Hashtable map)
            throws javax.naming.NamingException
Service method: decodes and rebinds an object.

Parameters:
name - Name to use for rebinding the object.
map - Coded object.
Throws:
javax.naming.NamingException - If the rebinding fails, or if the object could not be decoded.

lookup

public java.util.Hashtable lookup(java.lang.String name)
                           throws javax.naming.NamingException
Service method: retrieves an object and returns it coded.

Throws:
javax.naming.NamingException - If the lookup fails or if the object is not codable.

unbind

public void unbind(java.lang.String name)
            throws javax.naming.NamingException
Service method: unbinds an object.

Throws:
javax.naming.NamingException - If the unbinding fails.


Copyright ? 2004 Scalagent - All rights reserved