org.apache.avalon.excalibur.naming
Class RemoteContext
java.lang.Object
|
+--org.apache.avalon.excalibur.naming.AbstractContext
|
+--org.apache.avalon.excalibur.naming.RemoteContext
- All Implemented Interfaces:
- Context, Serializable
- public class RemoteContext
- extends AbstractContext
- implements Serializable
Context that hooks up to a remote source.
- Version:
- $Revision: 1.6 $
- Author:
- Peter Donald
- See Also:
- Serialized Form
Fields inherited from interface javax.naming.Context |
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES |
Methods inherited from class org.apache.avalon.excalibur.naming.AbstractContext |
addToEnvironment, bind, bind, composeName, composeName, createSubcontext, destroySubcontext, getEnvironment, getLeafName, getNameParser, getNameParser, getPathName, getRawEnvironment, isSelf, list, listBindings, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAMESPACE_NAME
public static final String NAMESPACE_NAME
NAMESPACE
public static final String NAMESPACE
NAMING_PROVIDER
public static final String NAMING_PROVIDER
RemoteContext
public RemoteContext()
RemoteContext
public RemoteContext(Hashtable environment,
Name baseName)
throws NamingException
bind
protected void bind(Name name,
Object object,
boolean rebind)
throws NamingException
- Helper method to bind
- Overrides:
bind
in class AbstractContext
close
public void close()
- Release resources associated with context.
- Overrides:
close
in class AbstractContext
createSubcontext
public Context createSubcontext(Name name)
throws NamingException
- Create a Subcontext.
- Parameters:
name
- the name of subcontext- Returns:
- the created context
- Throws:
NamingException
- if an error occurs (ie context exists, badly formated name etc)
destroySubcontext
public void destroySubcontext(Name name)
throws NamingException
getNameInNamespace
public String getNameInNamespace()
throws NamingException
list
public NamingEnumeration list(Name name)
throws NamingException
- Enumerates the names bound in the named context.
- Parameters:
name
- the name of the context- Returns:
- the enumeration
- Throws:
NamingException
- if an error occurs
listBindings
public NamingEnumeration listBindings(Name name)
throws NamingException
- Enumerates the names bound in the named context, along with the objects bound to them.
- Parameters:
name
- the name of the context- Returns:
- the enumeration
- Throws:
NamingException
- if an error occurs
lookup
public Object lookup(Name name)
throws NamingException
- Get the object named.
- Parameters:
name
- the name- Returns:
- the object
- Throws:
NamingException
- if an error occurs (ie object name is inavlid or unbound)
unbind
public void unbind(Name name)
throws NamingException
- Unbind a object from a name.
- Parameters:
name
- the name- Throws:
NamingException
- if an error occurs
fillInContext
protected void fillInContext(Context object)
throws NamingException
getNamespace
protected Namespace getNamespace()
throws NamingException
getProvider
protected NamingProvider getProvider()
throws NamingException
getNameParser
protected NameParser getNameParser()
throws NamingException
- Overrides:
getNameParser
in class AbstractContext
getAbsoluteName
protected Name getAbsoluteName(Name name)
throws NamingException
handleException
protected NamingException handleException(Exception e)
"Copyright © 2000-2002 Apache Jakarta Project. All Rights Reserved."