Package org.apache.naming
Class SelectorContext
java.lang.Object
org.apache.naming.SelectorContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionEnvironment.static final StringInitial context prefix.protected final booleanRequest for an initial context.static final StringNamespace URL.static final intNamespace URL length.protected static final StringManagerThe string manager for this package.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
ConstructorsConstructorDescriptionSelectorContext(Hashtable<String, Object> env) Builds a Catalina selector context using the given environment.SelectorContext(Hashtable<String, Object> env, boolean initialContext) Builds a Catalina selector context using the given environment. -
Method Summary
Modifier and TypeMethodDescriptionaddToEnvironment(String propName, Object propVal) voidvoidvoidclose()composeName(String name, String prefix) composeName(Name name, Name prefix) createSubcontext(String name) createSubcontext(Name name) voiddestroySubcontext(String name) voiddestroySubcontext(Name name) protected ContextGet the bound context.Hashtable<?, ?> getNameParser(String name) getNameParser(Name name) listBindings(String name) listBindings(Name name) lookupLink(String name) lookupLink(Name name) protected StringStrips the URL header.protected NameStrips the URL header.voidvoidremoveFromEnvironment(String propName) voidvoidvoidvoid
-
Field Details
-
prefix
-
prefixLength
public static final int prefixLengthNamespace URL length. -
IC_PREFIX
-
env
-
sm
The string manager for this package. -
initialContext
protected final boolean initialContextRequest for an initial context.
-
-
Constructor Details
-
SelectorContext
-
SelectorContext
-
-
Method Details
-
lookup
- Specified by:
lookupin interfaceContext- Throws:
NamingException
-
lookup
- Specified by:
lookupin interfaceContext- Throws:
NamingException
-
bind
- Specified by:
bindin interfaceContext- Throws:
NamingException
-
bind
- Specified by:
bindin interfaceContext- Throws:
NamingException
-
rebind
- Specified by:
rebindin interfaceContext- Throws:
NamingException
-
rebind
- Specified by:
rebindin interfaceContext- Throws:
NamingException
-
unbind
- Specified by:
unbindin interfaceContext- Throws:
NamingException
-
unbind
- Specified by:
unbindin interfaceContext- Throws:
NamingException
-
rename
- Specified by:
renamein interfaceContext- Throws:
NamingException
-
rename
- Specified by:
renamein interfaceContext- Throws:
NamingException
-
list
- Specified by:
listin interfaceContext- Throws:
NamingException
-
list
- Specified by:
listin interfaceContext- Throws:
NamingException
-
listBindings
- Specified by:
listBindingsin interfaceContext- Throws:
NamingException
-
listBindings
- Specified by:
listBindingsin interfaceContext- Throws:
NamingException
-
destroySubcontext
- Specified by:
destroySubcontextin interfaceContext- Throws:
NamingException
-
destroySubcontext
- Specified by:
destroySubcontextin interfaceContext- Throws:
NamingException
-
createSubcontext
- Specified by:
createSubcontextin interfaceContext- Throws:
NamingException
-
createSubcontext
- Specified by:
createSubcontextin interfaceContext- Throws:
NamingException
-
lookupLink
- Specified by:
lookupLinkin interfaceContext- Throws:
NamingException
-
lookupLink
- Specified by:
lookupLinkin interfaceContext- Throws:
NamingException
-
getNameParser
- Specified by:
getNameParserin interfaceContext- Throws:
NamingException
-
getNameParser
- Specified by:
getNameParserin interfaceContext- Throws:
NamingException
-
composeName
- Specified by:
composeNamein interfaceContext- Throws:
NamingException
-
composeName
- Specified by:
composeNamein interfaceContext- Throws:
NamingException
-
addToEnvironment
- Specified by:
addToEnvironmentin interfaceContext- Throws:
NamingException
-
removeFromEnvironment
- Specified by:
removeFromEnvironmentin interfaceContext- Throws:
NamingException
-
getEnvironment
- Specified by:
getEnvironmentin interfaceContext- Throws:
NamingException
-
close
- Specified by:
closein interfaceContext- Throws:
NamingException
-
getNameInNamespace
- Specified by:
getNameInNamespacein interfaceContext- Throws:
NamingException
-
getBoundContext
Get the bound context.- Returns:
- the Context bound with either the current thread or the current classloader
- Throws:
NamingException- Bindings exception
-
parseName
Strips the URL header.- Parameters:
name- The name- Returns:
- the parsed name
- Throws:
NamingException- if there is no "java:" header or if no naming context has been bound to this thread
-
parseName
Strips the URL header.- Parameters:
name- The name- Returns:
- the parsed name
- Throws:
NamingException- if there is no "java:" header or if no naming context has been bound to this thread
-