Class SelectorContext
java.lang.Object
org.apache.naming.SelectorContext
-
Field Summary
Modifier and TypeFieldDescriptionEnvironment.static final String
Initial context prefix.protected final boolean
Request for an initial context.static final String
Namespace URL.static final int
Namespace URL length.protected static final StringManager
The 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
ConstructorDescriptionSelectorContext
(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) void
void
void
close()
composeName
(String name, String prefix) composeName
(Name name, Name prefix) createSubcontext
(String name) createSubcontext
(Name name) void
destroySubcontext
(String name) void
destroySubcontext
(Name name) protected Context
Get the bound context.Hashtable
<?, ?> getNameParser
(String name) getNameParser
(Name name) listBindings
(String name) listBindings
(Name name) lookupLink
(String name) lookupLink
(Name name) protected String
Strips the URL header.protected Name
Strips the URL header.void
void
removeFromEnvironment
(String propName) void
void
void
void
-
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:
lookup
in interfaceContext
- Throws:
NamingException
-
lookup
- Specified by:
lookup
in interfaceContext
- Throws:
NamingException
-
bind
- Specified by:
bind
in interfaceContext
- Throws:
NamingException
-
bind
- Specified by:
bind
in interfaceContext
- Throws:
NamingException
-
rebind
- Specified by:
rebind
in interfaceContext
- Throws:
NamingException
-
rebind
- Specified by:
rebind
in interfaceContext
- Throws:
NamingException
-
unbind
- Specified by:
unbind
in interfaceContext
- Throws:
NamingException
-
unbind
- Specified by:
unbind
in interfaceContext
- Throws:
NamingException
-
rename
- Specified by:
rename
in interfaceContext
- Throws:
NamingException
-
rename
- Specified by:
rename
in interfaceContext
- Throws:
NamingException
-
list
- Specified by:
list
in interfaceContext
- Throws:
NamingException
-
list
- Specified by:
list
in interfaceContext
- Throws:
NamingException
-
listBindings
- Specified by:
listBindings
in interfaceContext
- Throws:
NamingException
-
listBindings
- Specified by:
listBindings
in interfaceContext
- Throws:
NamingException
-
destroySubcontext
- Specified by:
destroySubcontext
in interfaceContext
- Throws:
NamingException
-
destroySubcontext
- Specified by:
destroySubcontext
in interfaceContext
- Throws:
NamingException
-
createSubcontext
- Specified by:
createSubcontext
in interfaceContext
- Throws:
NamingException
-
createSubcontext
- Specified by:
createSubcontext
in interfaceContext
- Throws:
NamingException
-
lookupLink
- Specified by:
lookupLink
in interfaceContext
- Throws:
NamingException
-
lookupLink
- Specified by:
lookupLink
in interfaceContext
- Throws:
NamingException
-
getNameParser
- Specified by:
getNameParser
in interfaceContext
- Throws:
NamingException
-
getNameParser
- Specified by:
getNameParser
in interfaceContext
- Throws:
NamingException
-
composeName
- Specified by:
composeName
in interfaceContext
- Throws:
NamingException
-
composeName
- Specified by:
composeName
in interfaceContext
- Throws:
NamingException
-
addToEnvironment
- Specified by:
addToEnvironment
in interfaceContext
- Throws:
NamingException
-
removeFromEnvironment
- Specified by:
removeFromEnvironment
in interfaceContext
- Throws:
NamingException
-
getEnvironment
- Specified by:
getEnvironment
in interfaceContext
- Throws:
NamingException
-
close
- Specified by:
close
in interfaceContext
- Throws:
NamingException
-
getNameInNamespace
- Specified by:
getNameInNamespace
in 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
-