org.sapia.ubik.rmi.naming
Interface ServiceHandler
- All Known Implementing Classes:
- JNDIHandler
public interface ServiceHandler
An instance of this class performs lookups on behalf of
the ServiceLocator.
- 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
- See Also:
ServiceLocator
|
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. |
handleLookup
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
- Handles the lookup for the given path, given the host and port.
- 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.
Copyright © 2010 Sapia OSS. All Rights Reserved.