|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.spice.jndikit.AbstractContext
org.codehaus.spice.jndikit.RemoteContext
Context that hooks up to a remote source.
Field Summary | |
---|---|
static String |
NAMESPACE
|
static String |
NAMESPACE_NAME
|
static String |
NAMING_PROVIDER
|
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 |
Constructor Summary | |
---|---|
RemoteContext()
|
|
RemoteContext(Hashtable environment,
Name baseName)
|
Method Summary | |
---|---|
protected void |
bind(Name name,
Object object,
boolean rebind)
Helper method to bind |
void |
close()
Release resources associated with context. |
Context |
createSubcontext(Name name)
Create a Subcontext. |
void |
destroySubcontext(Name name)
|
protected void |
fillInContext(Context object)
|
protected Name |
getAbsoluteName(Name name)
|
String |
getNameInNamespace()
|
protected NameParser |
getNameParser()
|
protected Namespace |
getNamespace()
|
protected NamingProvider |
getProvider()
|
protected NamingException |
handleException(Exception e)
|
NamingEnumeration |
list(Name name)
Enumerates the names bound in the named context. |
NamingEnumeration |
listBindings(Name name)
Enumerates the names bound in the named context, along with the objects bound to them. |
Object |
lookup(Name name)
Get the object named. |
void |
unbind(Name name)
Unbind a object from a name. |
Methods inherited from class org.codehaus.spice.jndikit.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 |
Field Detail |
public static final String NAMESPACE_NAME
public static final String NAMESPACE
public static final String NAMING_PROVIDER
Constructor Detail |
public RemoteContext()
public RemoteContext(Hashtable environment, Name baseName) throws NamingException
Method Detail |
protected void bind(Name name, Object object, boolean rebind) throws NamingException
bind
in class AbstractContext
NamingException
public void close()
close
in interface Context
close
in class AbstractContext
public Context createSubcontext(Name name) throws NamingException
createSubcontext
in interface Context
name
- the name of subcontext
NamingException
- if an error occurs
(ie context exists, badly formated name etc)public void destroySubcontext(Name name) throws NamingException
destroySubcontext
in interface Context
NamingException
public String getNameInNamespace() throws NamingException
getNameInNamespace
in interface Context
NamingException
public NamingEnumeration list(Name name) throws NamingException
list
in interface Context
name
- the name of the context
NamingException
- if an error occurspublic NamingEnumeration listBindings(Name name) throws NamingException
listBindings
in interface Context
name
- the name of the context
NamingException
- if an error occurspublic Object lookup(Name name) throws NamingException
lookup
in interface Context
name
- the name
NamingException
- if an error occurs
(ie object name is inavlid or unbound)public void unbind(Name name) throws NamingException
unbind
in interface Context
name
- the name
NamingException
- if an error occursprotected void fillInContext(Context object) throws NamingException
NamingException
protected Namespace getNamespace() throws NamingException
NamingException
protected NamingProvider getProvider() throws NamingException
NamingException
protected NameParser getNameParser() throws NamingException
getNameParser
in class AbstractContext
NamingException
protected Name getAbsoluteName(Name name) throws NamingException
NamingException
protected NamingException handleException(Exception e)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |