|
Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.xdb.spi.XDBBaseContext
This class implements the guts of the XDB JNDI SPI. The current implementation has no federation support, being completely unaware of the existence of other namespaces.
| Field Summary | |
protected java.util.Hashtable |
m_env |
protected java.util.ResourceBundle |
m_msgBundle |
protected java.lang.String |
m_path |
static int |
OBJ_CONTAINER |
static int |
OBJ_DOCUMENT |
protected static XDBNameParser |
s_parser |
| 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 | |
|
XDBBaseContext(java.util.Hashtable env, int type) |
protected |
XDBBaseContext(java.util.Hashtable env, java.lang.String path, int type) |
| Method Summary | |
java.lang.Object |
addToEnvironment(java.lang.String propName, java.lang.Object propVal)Adds a new environment property to the environment of this context. |
void |
bind(javax.naming.Name name, java.lang.Object obj)Binds the given name to the object. |
void |
bind(java.lang.String name, java.lang.Object obj)Binds the given name to the object. |
void |
close()Closes this context, signaling the implementation to free the resources taken up by this context. |
javax.naming.Name |
composeName(javax.naming.Name name, javax.naming.Name prefix)Composes a name by combining the prefix with the name. |
java.lang.String |
composeName(java.lang.String name, java.lang.String prefix)Composes a name by combining the prefix with the name. |
javax.naming.Context |
createSubcontext(javax.naming.Name name)Creates a new subcontext, bound to the given name. |
javax.naming.Context |
createSubcontext(java.lang.String name)Creates a new subcontext, bound to the given name. |
void |
destroySubcontext(javax.naming.Name name)Unbinds the named subcontext. |
void |
destroySubcontext(java.lang.String name)Unbinds the named subcontext. |
java.util.Hashtable |
getEnvironment()Retrieves the environment properties for this context. |
java.lang.String |
getNameInNamespace()Retrieves the full name of this context within its own namespace. |
javax.naming.NameParser |
getNameParser(javax.naming.Name name)Retrieves the parser associated with the named context. |
javax.naming.NameParser |
getNameParser(java.lang.String name)Retrieves the parser associated with the named context. |
javax.naming.NamingEnumeration |
list(javax.naming.Name name)Enumerates the names bound in the named context, along with the class names of objects bounds to them. |
javax.naming.NamingEnumeration |
list(java.lang.String name)Enumerates the names bound in the named context, along with the class names of objects bounds to them. |
javax.naming.NamingEnumeration |
listBindings(javax.naming.Name name)Enumerates the names bound in the named context, along with the objects bounds to them. |
javax.naming.NamingEnumeration |
listBindings(java.lang.String name)Enumerates the names bound in the named context, along with the objects bounds to them. |
java.lang.Object |
lookup(javax.naming.Name name)Retrieves the named object. |
java.lang.Object |
lookup(java.lang.String name)Retrieves the named object. |
protected long[] |
lookupCState(java.lang.String name) |
java.lang.Object |
lookupLink(javax.naming.Name name)Retrieves the named object. |
java.lang.Object |
lookupLink(java.lang.String name)Retrieves the named object. |
void |
rebind(javax.naming.Name name, java.lang.Object obj)Binds the given name to the object, overwriting any existing binding for the name. |
void |
rebind(java.lang.String name, java.lang.Object obj)Binds the given name to the object, overwriting any existing binding for the name. |
java.lang.Object |
removeFromEnvironment(java.lang.String propName)Removes an environment property from the environment of this context. |
void |
rename(javax.naming.Name oldname, javax.naming.Name newname)Binds a new name to the object already bound to another name, then unbinds the old name. |
void |
rename(java.lang.String oldname, java.lang.String newname)Bind a new name to the object already bound to another name, then unbinds the old name. |
void |
unbind(javax.naming.Name name)Unbinds the name object. |
void |
unbind(java.lang.String name)Unbinds the name object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int OBJ_CONTAINER
public static final int OBJ_DOCUMENT
protected static XDBNameParser s_parser
protected java.util.Hashtable m_env
protected java.util.ResourceBundle m_msgBundle
protected java.lang.String m_path
| Constructor Detail |
public XDBBaseContext(java.util.Hashtable env,
int type)
protected XDBBaseContext(java.util.Hashtable env,
java.lang.String path,
int type)
| Method Detail |
protected long[] lookupCState(java.lang.String name)
throws javax.naming.NamingException
javax.naming.NamingException
public java.lang.Object lookup(java.lang.String name)
throws javax.naming.NamingException
lookup in interface javax.naming.Contextname - the name to look up, relative to the current context.javax.naming.NameNotFoundException - name not foundjavax.naming.NamingException - other naming exceptionXDBDocument
public java.lang.Object lookup(javax.naming.Name name)
throws javax.naming.NamingException
lookup in interface javax.naming.Contextname - the name to look up, relative to the current context.javax.naming.NamingExceptionXDBDocument
public void bind(java.lang.String name,
java.lang.Object obj)
throws javax.naming.NamingException
bind in interface javax.naming.Contextname - the name to bind to; may not be emptyobj - the XDBDocument object to bind; may not be nulljavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.NameAlreadyBoundException - name already boundjavax.naming.NamingException - other naming exceptionXDBDocument
public void bind(javax.naming.Name name,
java.lang.Object obj)
throws javax.naming.NamingException
bind in interface javax.naming.Contextname - the name to bind to; may not be emptyobj - the XDBDocument object to bind; may not be nulljavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.NameAlreadyBoundException - name already boundjavax.naming.NamingException - other naming exceptionXDBDocument
public void rebind(java.lang.String name,
java.lang.Object obj)
throws javax.naming.NamingException
rebind in interface javax.naming.Contextname - the name to bind to; may not be emptyobj - the XDBDocument object to bind; may not be nulljavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.NameAlreadyBoundException - name already boundjavax.naming.NamingException - other naming exceptionXDBDocument
public void rebind(javax.naming.Name name,
java.lang.Object obj)
throws javax.naming.NamingException
rebind in interface javax.naming.Contextname - the name to bind to; may not be emptyobj - the XDBDocument object to bind; may not be nulljavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.NameAlreadyBoundException - name already boundjavax.naming.NamingException - other naming exceptionXDBDocument
public void unbind(java.lang.String name)
throws javax.naming.NamingException
unbind in interface javax.naming.Contextname - the name to unbindjavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.OperationNotSupportedException - name bound to subcontextjavax.naming.NamingException - other naming exceptionXDBContext.destroySubcontext(java.lang.String)
public void unbind(javax.naming.Name name)
throws javax.naming.NamingException
unbind in interface javax.naming.Contextname - the name to unbindjavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.OperationNotSupportedException - name bound to subcontextjavax.naming.NamingException - other naming exceptionXDBContext.destroySubcontext(javax.naming.Name)
public void rename(java.lang.String oldname,
java.lang.String newname)
throws javax.naming.NamingException
rename in interface javax.naming.Contextoldname - the name of the existing binding; may not be emptynewname - the name to the new binding; may not be emptyjavax.naming.NamingException - name not foundjavax.naming.OperationNotSupportedException - name bound to subcontextjavax.naming.NamingException - other naming exception
public void rename(javax.naming.Name oldname,
javax.naming.Name newname)
throws javax.naming.NamingException
rename in interface javax.naming.Contextoldname - the name of the existing binding; may not be emptynewname - the name to the new binding; may not be emptyjavax.naming.NamingException - name not foundjavax.naming.OperationNotSupportedException - name bound to subcontextjavax.naming.NamingException - other naming exception
public javax.naming.NamingEnumeration list(java.lang.String name)
throws javax.naming.NamingException
list in interface javax.naming.Contextname - the name of the context to listjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.NamingException - other naming exceptionNameClassPair
public javax.naming.NamingEnumeration list(javax.naming.Name name)
throws javax.naming.NamingException
list in interface javax.naming.Contextname - the name of the context to listjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.NamingException - other naming exceptionNameClassPair
public javax.naming.NamingEnumeration listBindings(java.lang.String name)
throws javax.naming.NamingException
listBindings in interface javax.naming.Contextname - the name of the context to listjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.NamingException - other naming exceptionBinding
public javax.naming.NamingEnumeration listBindings(javax.naming.Name name)
throws javax.naming.NamingException
listBindings in interface javax.naming.Contextname - the name of the context to listjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.NamingException - other naming exceptionBinding
public void destroySubcontext(java.lang.String name)
throws javax.naming.NamingException
destroySubcontext in interface javax.naming.Contextname - the name of the context to unbindjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.ContextNotEmptyException - context not emptyjavax.naming.NamingException - other naming exception
public void destroySubcontext(javax.naming.Name name)
throws javax.naming.NamingException
destroySubcontext in interface javax.naming.Contextname - the name of the context to unbindjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.ContextNotEmptyException - context not emptyjavax.naming.NamingException - other naming exception
public javax.naming.Context createSubcontext(java.lang.String name)
throws javax.naming.NamingException
createSubcontext in interface javax.naming.Contextjavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.NameAlreadyBoundException - name already boundjavax.naming.NamingException - other naming exception
public javax.naming.Context createSubcontext(javax.naming.Name name)
throws javax.naming.NamingException
createSubcontext in interface javax.naming.Contextjavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.NameAlreadyBoundException - name already boundjavax.naming.NamingException - other naming exception
public java.lang.Object lookupLink(java.lang.String name)
throws javax.naming.NamingException
lookupLink in interface javax.naming.Contextname - the name to look up, relative to the current context.javax.naming.NamingExceptionXDBContext.lookup(java.lang.String), XDBDocument
public java.lang.Object lookupLink(javax.naming.Name name)
throws javax.naming.NamingException
lookupLink in interface javax.naming.Contextname - the name to look up, relative to the current context.javax.naming.NamingExceptionXDBContext.lookup(javax.naming.Name), XDBDocument
public javax.naming.NameParser getNameParser(java.lang.String name)
throws javax.naming.NamingException
getNameParser in interface javax.naming.Contextname - the name of the context from which to get the parserjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.NamingException - other naming exception
public javax.naming.NameParser getNameParser(javax.naming.Name name)
throws javax.naming.NamingException
getNameParser in interface javax.naming.Contextname - the name of the context from which to get the parserjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.NamingException - other naming exception
public java.lang.Object addToEnvironment(java.lang.String propName,
java.lang.Object propVal)
addToEnvironment in interface javax.naming.ContextpropName - the name of the environment property to add; may not be nullpropVal - the value of the property to add; may not be nullpublic java.lang.Object removeFromEnvironment(java.lang.String propName)
removeFromEnvironment in interface javax.naming.ContextpropName - the name of the environment property to remove; may not be null
public java.util.Hashtable getEnvironment()
throws javax.naming.NamingException
getEnvironment in interface javax.naming.Contextjavax.naming.NamingExceptionpublic void close()
close in interface javax.naming.Context
public javax.naming.Name composeName(javax.naming.Name name,
javax.naming.Name prefix)
throws javax.naming.NamingException
composeName in interface javax.naming.Contextname - the name to appendjavax.naming.NamingException
public java.lang.String composeName(java.lang.String name,
java.lang.String prefix)
composeName in interface javax.naming.Contextname - the name to append
public java.lang.String getNameInNamespace()
throws javax.naming.NamingException
getNameInNamespace in interface javax.naming.Contextjavax.naming.NamingException
|
Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||