public abstract class AbstractContext extends Object implements Context, AutoCloseable
Context implementation which does not support federation of naming systems (i.e. binding
contexts from other naming systems). Such contexts can use names that do not follow the composite name
syntax constraints, and may perform better.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| Modifier | Constructor and Description |
|---|---|
protected |
AbstractContext()
Construct a new instance.
|
protected |
AbstractContext(FastHashtable<String,Object> environment)
Construct a new instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getNameInNamespacecloseprotected AbstractContext(FastHashtable<String,Object> environment)
environment - the environment map to useprotected AbstractContext()
public NameParser getNativeNameParser()
SimpleName instances but may be overridden as desired.public Object lookup(String name) throws NamingException
lookup in interface ContextNamingExceptionpublic Object lookup(Name name) throws NamingException
lookup in interface ContextNamingExceptionprotected abstract Object lookupNative(Name name) throws NamingException
CompositeName.name - the (compound) name (not null)NamingException - if an error occurspublic Object lookupLink(String name) throws NamingException
lookupLink in interface ContextNamingExceptionpublic Object lookupLink(Name name) throws NamingException
lookupLink in interface ContextNamingExceptionprotected abstract Object lookupLinkNative(Name name) throws NamingException
NamingExceptionpublic void bind(String name, Object obj) throws NamingException
bind in interface ContextNamingExceptionpublic void bind(Name name, Object obj) throws NamingException
bind in interface ContextNamingExceptionprotected void bindNative(Name name, Object obj) throws NamingException
NamingExceptionpublic void rebind(String name, Object obj) throws NamingException
rebind in interface ContextNamingExceptionpublic void rebind(Name name, Object obj) throws NamingException
rebind in interface ContextNamingExceptionprotected void rebindNative(Name name, Object obj) throws NamingException
NamingExceptionpublic void unbind(String name) throws NamingException
unbind in interface ContextNamingExceptionpublic void unbind(Name name) throws NamingException
unbind in interface ContextNamingExceptionprotected void unbindNative(Name name) throws NamingException
NamingExceptionpublic void rename(String oldName, String newName) throws NamingException
rename in interface ContextNamingExceptionpublic void rename(Name oldName, Name newName) throws NamingException
rename in interface ContextNamingExceptionprotected void renameNative(Name oldName, Name newName) throws NamingException
NamingExceptionpublic CloseableNamingEnumeration<NameClassPair> list(String name) throws NamingException
list in interface ContextNamingExceptionpublic CloseableNamingEnumeration<NameClassPair> list(Name name) throws NamingException
list in interface ContextNamingExceptionprotected abstract CloseableNamingEnumeration<NameClassPair> listNative(Name name) throws NamingException
NamingExceptionpublic CloseableNamingEnumeration<Binding> listBindings(String name) throws NamingException
listBindings in interface ContextNamingExceptionpublic CloseableNamingEnumeration<Binding> listBindings(Name name) throws NamingException
listBindings in interface ContextNamingExceptionprotected abstract CloseableNamingEnumeration<Binding> listBindingsNative(Name name) throws NamingException
NamingExceptionpublic void destroySubcontext(String name) throws NamingException
destroySubcontext in interface ContextNamingExceptionpublic void destroySubcontext(Name name) throws NamingException
destroySubcontext in interface ContextNamingExceptionprotected void destroySubcontextNative(Name name) throws NamingException
NamingExceptionpublic Context createSubcontext(String name) throws NamingException
createSubcontext in interface ContextNamingExceptionpublic Context createSubcontext(Name name) throws NamingException
createSubcontext in interface ContextNamingExceptionprotected Context createSubcontextNative(Name name) throws NamingException
NamingExceptionpublic Name composeName(Name name, Name prefix) throws NamingException
composeName in interface ContextNamingExceptionpublic String composeName(String name, String prefix) throws NamingException
composeName in interface ContextNamingExceptionpublic NameParser getNameParser(Name name) throws NamingException
getNameParser in interface ContextNamingExceptionpublic NameParser getNameParser(String name) throws NamingException
getNameParser in interface ContextNamingExceptionprotected Name decomposeName(CompositeName compositeName) throws NamingException
NamingExceptionpublic Object addToEnvironment(String propName, Object propVal)
addToEnvironment in interface Contextpublic Object removeFromEnvironment(String propName)
removeFromEnvironment in interface Contextpublic FastHashtable<String,Object> getEnvironment() throws NamingException
getEnvironment in interface ContextNamingExceptionprotected static NamingException nameNotFound(Name name)
protected static NoPermissionException readOnlyContext()
protected static OperationNotSupportedException notSupported()
Copyright © 2017 JBoss by Red Hat. All rights reserved.