Class SelectorContext
java.lang.Object
org.apache.naming.SelectorContext
- 
Field SummaryFieldsModifier 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.ContextAPPLET, 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 SummaryConstructorsConstructorDescriptionSelectorContext(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 SummaryModifier 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
- 
prefixLengthpublic static final int prefixLengthNamespace URL length.
- 
IC_PREFIX
- 
env
- 
smThe string manager for this package.
- 
initialContextprotected final boolean initialContextRequest for an initial context.
 
- 
- 
Constructor Details- 
SelectorContext
- 
SelectorContext
 
- 
- 
Method Details- 
lookup- Specified by:
- lookupin interface- Context
- Throws:
- NamingException
 
- 
lookup- Specified by:
- lookupin interface- Context
- Throws:
- NamingException
 
- 
bind- Specified by:
- bindin interface- Context
- Throws:
- NamingException
 
- 
bind- Specified by:
- bindin interface- Context
- Throws:
- NamingException
 
- 
rebind- Specified by:
- rebindin interface- Context
- Throws:
- NamingException
 
- 
rebind- Specified by:
- rebindin interface- Context
- Throws:
- NamingException
 
- 
unbind- Specified by:
- unbindin interface- Context
- Throws:
- NamingException
 
- 
unbind- Specified by:
- unbindin interface- Context
- Throws:
- NamingException
 
- 
rename- Specified by:
- renamein interface- Context
- Throws:
- NamingException
 
- 
rename- Specified by:
- renamein interface- Context
- Throws:
- NamingException
 
- 
list- Specified by:
- listin interface- Context
- Throws:
- NamingException
 
- 
list- Specified by:
- listin interface- Context
- Throws:
- NamingException
 
- 
listBindings- Specified by:
- listBindingsin interface- Context
- Throws:
- NamingException
 
- 
listBindings- Specified by:
- listBindingsin interface- Context
- Throws:
- NamingException
 
- 
destroySubcontext- Specified by:
- destroySubcontextin interface- Context
- Throws:
- NamingException
 
- 
destroySubcontext- Specified by:
- destroySubcontextin interface- Context
- Throws:
- NamingException
 
- 
createSubcontext- Specified by:
- createSubcontextin interface- Context
- Throws:
- NamingException
 
- 
createSubcontext- Specified by:
- createSubcontextin interface- Context
- Throws:
- NamingException
 
- 
lookupLink- Specified by:
- lookupLinkin interface- Context
- Throws:
- NamingException
 
- 
lookupLink- Specified by:
- lookupLinkin interface- Context
- Throws:
- NamingException
 
- 
getNameParser- Specified by:
- getNameParserin interface- Context
- Throws:
- NamingException
 
- 
getNameParser- Specified by:
- getNameParserin interface- Context
- Throws:
- NamingException
 
- 
composeName- Specified by:
- composeNamein interface- Context
- Throws:
- NamingException
 
- 
composeName- Specified by:
- composeNamein interface- Context
- Throws:
- NamingException
 
- 
addToEnvironment- Specified by:
- addToEnvironmentin interface- Context
- Throws:
- NamingException
 
- 
removeFromEnvironment- Specified by:
- removeFromEnvironmentin interface- Context
- Throws:
- NamingException
 
- 
getEnvironment- Specified by:
- getEnvironmentin interface- Context
- Throws:
- NamingException
 
- 
close- Specified by:
- closein interface- Context
- Throws:
- NamingException
 
- 
getNameInNamespace- Specified by:
- getNameInNamespacein interface- Context
- Throws:
- NamingException
 
- 
getBoundContextGet the bound context.- Returns:
- the Context bound with either the current thread or the current classloader
- Throws:
- NamingException- Bindings exception
 
- 
parseNameStrips 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
 
- 
parseNameStrips 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
 
 
-