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, wait
close, getNameInNamespace
close
protected 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 Context
NamingException
public Object lookup(Name name) throws NamingException
lookup
in interface Context
NamingException
protected 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 Context
NamingException
public Object lookupLink(Name name) throws NamingException
lookupLink
in interface Context
NamingException
protected abstract Object lookupLinkNative(Name name) throws NamingException
NamingException
public void bind(String name, Object obj) throws NamingException
bind
in interface Context
NamingException
public void bind(Name name, Object obj) throws NamingException
bind
in interface Context
NamingException
protected void bindNative(Name name, Object obj) throws NamingException
NamingException
public void rebind(String name, Object obj) throws NamingException
rebind
in interface Context
NamingException
public void rebind(Name name, Object obj) throws NamingException
rebind
in interface Context
NamingException
protected void rebindNative(Name name, Object obj) throws NamingException
NamingException
public void unbind(String name) throws NamingException
unbind
in interface Context
NamingException
public void unbind(Name name) throws NamingException
unbind
in interface Context
NamingException
protected void unbindNative(Name name) throws NamingException
NamingException
public void rename(String oldName, String newName) throws NamingException
rename
in interface Context
NamingException
public void rename(Name oldName, Name newName) throws NamingException
rename
in interface Context
NamingException
protected void renameNative(Name oldName, Name newName) throws NamingException
NamingException
public CloseableNamingEnumeration<NameClassPair> list(String name) throws NamingException
list
in interface Context
NamingException
public CloseableNamingEnumeration<NameClassPair> list(Name name) throws NamingException
list
in interface Context
NamingException
protected abstract CloseableNamingEnumeration<NameClassPair> listNative(Name name) throws NamingException
NamingException
public CloseableNamingEnumeration<Binding> listBindings(String name) throws NamingException
listBindings
in interface Context
NamingException
public CloseableNamingEnumeration<Binding> listBindings(Name name) throws NamingException
listBindings
in interface Context
NamingException
protected abstract CloseableNamingEnumeration<Binding> listBindingsNative(Name name) throws NamingException
NamingException
public void destroySubcontext(String name) throws NamingException
destroySubcontext
in interface Context
NamingException
public void destroySubcontext(Name name) throws NamingException
destroySubcontext
in interface Context
NamingException
protected void destroySubcontextNative(Name name) throws NamingException
NamingException
public Context createSubcontext(String name) throws NamingException
createSubcontext
in interface Context
NamingException
public Context createSubcontext(Name name) throws NamingException
createSubcontext
in interface Context
NamingException
protected Context createSubcontextNative(Name name) throws NamingException
NamingException
public Name composeName(Name name, Name prefix) throws NamingException
composeName
in interface Context
NamingException
public String composeName(String name, String prefix) throws NamingException
composeName
in interface Context
NamingException
public NameParser getNameParser(Name name) throws NamingException
getNameParser
in interface Context
NamingException
public NameParser getNameParser(String name) throws NamingException
getNameParser
in interface Context
NamingException
protected Name decomposeName(CompositeName compositeName) throws NamingException
NamingException
public Object addToEnvironment(String propName, Object propVal)
addToEnvironment
in interface Context
public Object removeFromEnvironment(String propName)
removeFromEnvironment
in interface Context
public FastHashtable<String,Object> getEnvironment() throws NamingException
getEnvironment
in interface Context
NamingException
protected static NamingException nameNotFound(Name name)
protected static NoPermissionException readOnlyContext()
protected static OperationNotSupportedException notSupported()
Copyright © 2021 JBoss by Red Hat. All rights reserved.