Package org.wildfly.httpclient.naming
Class HttpRootContext
- java.lang.Object
-
- org.wildfly.naming.client.AbstractContext
-
- org.wildfly.httpclient.naming.HttpRootContext
-
- All Implemented Interfaces:
AutoCloseable,Context
public class HttpRootContext extends AbstractContext
Root naming context.- Author:
- Stuart Douglas, Flavia Rainone
-
-
Field Summary
-
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
Constructors Modifier Constructor Description protectedHttpRootContext(FastHashtable<String,Object> environment, HttpNamingProvider httpNamingProvider, String scheme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(String name, Object obj)protected voidbindNative(Name name, Object obj)voidclose()protected ContextcreateSubcontextNative(Name name)protected voiddestroySubcontextNative(Name name)StringgetNameInNamespace()protected CloseableNamingEnumeration<Binding>listBindingsNative(Name name)protected CloseableNamingEnumeration<NameClassPair>listNative(Name name)protected ObjectlookupLinkNative(Name name)protected ObjectlookupNative(Name name)Look up a compound name within this naming system.protected voidrebindNative(Name name, Object obj)protected voidrenameNative(Name oldName, Name newName)protected voidunbindNative(Name name)-
Methods inherited from class org.wildfly.naming.client.AbstractContext
addToEnvironment, bind, composeName, composeName, createSubcontext, createSubcontext, decomposeName, destroySubcontext, destroySubcontext, getEnvironment, getNameParser, getNameParser, getNativeNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, nameNotFound, notSupported, readOnlyContext, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind
-
-
-
-
Constructor Detail
-
HttpRootContext
protected HttpRootContext(FastHashtable<String,Object> environment, HttpNamingProvider httpNamingProvider, String scheme)
-
-
Method Detail
-
bind
public void bind(String name, Object obj) throws NamingException
- Specified by:
bindin interfaceContext- Overrides:
bindin classAbstractContext- Throws:
NamingException
-
lookupNative
protected Object lookupNative(Name name) throws NamingException
Description copied from class:AbstractContextLook up a compound name within this naming system. The given name is guaranteed not to be aCompositeName.- Specified by:
lookupNativein classAbstractContext- Parameters:
name- the (compound) name (notnull)- Returns:
- the binding value
- Throws:
NamingException- if an error occurs
-
lookupLinkNative
protected Object lookupLinkNative(Name name) throws NamingException
- Specified by:
lookupLinkNativein classAbstractContext- Throws:
NamingException
-
listNative
protected CloseableNamingEnumeration<NameClassPair> listNative(Name name) throws NamingException
- Specified by:
listNativein classAbstractContext- Throws:
NamingException
-
listBindingsNative
protected CloseableNamingEnumeration<Binding> listBindingsNative(Name name) throws NamingException
- Specified by:
listBindingsNativein classAbstractContext- Throws:
NamingException
-
bindNative
protected void bindNative(Name name, Object obj) throws NamingException
- Overrides:
bindNativein classAbstractContext- Throws:
NamingException
-
rebindNative
protected void rebindNative(Name name, Object obj) throws NamingException
- Overrides:
rebindNativein classAbstractContext- Throws:
NamingException
-
unbindNative
protected void unbindNative(Name name) throws NamingException
- Overrides:
unbindNativein classAbstractContext- Throws:
NamingException
-
renameNative
protected void renameNative(Name oldName, Name newName) throws NamingException
- Overrides:
renameNativein classAbstractContext- Throws:
NamingException
-
destroySubcontextNative
protected void destroySubcontextNative(Name name) throws NamingException
- Overrides:
destroySubcontextNativein classAbstractContext- Throws:
NamingException
-
createSubcontextNative
protected Context createSubcontextNative(Name name) throws NamingException
- Overrides:
createSubcontextNativein classAbstractContext- Throws:
NamingException
-
close
public void close() throws NamingException- Throws:
NamingException
-
getNameInNamespace
public String getNameInNamespace() throws NamingException
- Throws:
NamingException
-
-