org.sapia.ubik.rmi.naming.remote.proxy
Class JNDIHandler

java.lang.Object
  extended by org.sapia.ubik.rmi.naming.remote.proxy.JNDIHandler
All Implemented Interfaces:
ServiceHandler

public class JNDIHandler
extends java.lang.Object
implements ServiceHandler

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Constructor Summary
JNDIHandler()
           
 
Method Summary
 java.lang.Object handleLookup(java.lang.String host, int port, java.lang.String path, java.util.Map attributes)
          Handles the lookup for the given path, given the host and port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIHandler

public JNDIHandler()
Method Detail

handleLookup

public java.lang.Object handleLookup(java.lang.String host,
                                     int port,
                                     java.lang.String path,
                                     java.util.Map attributes)
                              throws javax.naming.NameNotFoundException,
                                     javax.naming.NamingException
Description copied from interface: ServiceHandler
Handles the lookup for the given path, given the host and port.

Specified by:
handleLookup in interface ServiceHandler
Parameters:
host - the host to look up.
port - the port on which to connect. If the port corresponds to the UNDEFINED_PORT constant, it means that the caller has not specified any port (a necessary feature in order to support well-known ports).
path - the path of the object to look up.
attributes - a Map of attributes - the latter correspond to the query string parameters that is parsed out of the URL that is specified to the ServiceLocator.
Returns:
an Object
Throws:
javax.naming.NameNotFoundException - if no object could be found for the given path.
javax.naming.NamingException - if an error occurs while performing the lookup.
See Also:
ServiceHandler.handleLookup(String, int, String, Map)


Copyright © 2010 Sapia OSS. All Rights Reserved.