public class WinstoneContext extends Object implements 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| Modifier | Constructor and Description |
|---|---|
|
WinstoneContext(Map sourceEnvironment,
WinstoneContext parent,
String absoluteName,
Object contextLock)
Constructor - sets up environment
|
protected |
WinstoneContext(Map sourceEnvironment,
WinstoneContext parent,
String absoluteName,
Object contextLock,
Hashtable bindings)
Constructor - sets up environment and copies the bindings across
|
| Modifier and Type | Method and Description |
|---|---|
Object |
addToEnvironment(String property,
Object value) |
void |
bind(Name name,
Object value) |
protected void |
bind(Name name,
Object value,
boolean allowOverwrites) |
void |
bind(String name,
Object value)
Below here is for read-write contexts ...
|
void |
close() |
Name |
composeName(Name name1,
Name name2) |
String |
composeName(String name1,
String name2) |
Context |
createSubcontext(Name name) |
Context |
createSubcontext(String name) |
void |
destroySubcontext(Name name) |
void |
destroySubcontext(String name) |
Hashtable |
getEnvironment() |
String |
getNameInNamespace() |
NameParser |
getNameParser(Name name) |
NameParser |
getNameParser(String name) |
NamingEnumeration |
list(Name name)
Returns a list of objects bound to the context
|
NamingEnumeration |
list(String name) |
NamingEnumeration |
listBindings(Name name) |
NamingEnumeration |
listBindings(String name) |
Object |
lookup(Name name)
Lookup an object in the context.
|
Object |
lookup(String name) |
Object |
lookupLink(Name name) |
Object |
lookupLink(String name) |
void |
rebind(Name name,
Object value) |
void |
rebind(String name,
Object value) |
Object |
removeFromEnvironment(String property) |
void |
rename(Name oldName,
Name newName) |
void |
rename(String oldName,
String newName) |
void |
unbind(Name name) |
void |
unbind(String name) |
protected Name |
validateName(Name name)
Handles the processing of relative and absolute names.
|
public WinstoneContext(Map sourceEnvironment, WinstoneContext parent, String absoluteName, Object contextLock) throws NamingException
NamingExceptionprotected WinstoneContext(Map sourceEnvironment, WinstoneContext parent, String absoluteName, Object contextLock, Hashtable bindings) throws NamingException
NamingExceptionpublic void close()
throws NamingException
close in interface ContextNamingExceptionpublic Hashtable getEnvironment() throws NamingException
getEnvironment in interface ContextNamingExceptionpublic Object removeFromEnvironment(String property) throws NamingException
removeFromEnvironment in interface ContextNamingExceptionpublic Object addToEnvironment(String property, Object value) throws NamingException
addToEnvironment in interface ContextNamingExceptionprotected Name validateName(Name name) throws NamingException
NamingExceptionpublic Object lookup(Name name) throws NamingException
lookup in interface ContextNamingExceptionpublic Object lookup(String name) throws NamingException
lookup in interface ContextNamingExceptionpublic Object lookupLink(Name name) throws NamingException
lookupLink in interface ContextNamingExceptionpublic Object lookupLink(String name) throws NamingException
lookupLink in interface ContextNamingExceptionpublic NamingEnumeration list(Name name) throws NamingException
list in interface ContextNamingExceptionpublic NamingEnumeration list(String name) throws NamingException
list in interface ContextNamingExceptionpublic NamingEnumeration listBindings(Name name) throws NamingException
listBindings in interface ContextNamingExceptionpublic NamingEnumeration listBindings(String name) throws NamingException
listBindings in interface ContextNamingExceptionpublic NameParser getNameParser(Name name) throws NamingException
getNameParser in interface ContextNamingExceptionpublic NameParser getNameParser(String name) throws NamingException
getNameParser in interface ContextNamingExceptionpublic String getNameInNamespace() throws NamingException
getNameInNamespace in interface ContextNamingExceptionpublic void bind(String name, Object value) throws NamingException
bind in interface ContextNamingExceptionpublic void bind(Name name, Object value) throws NamingException
bind in interface ContextNamingExceptionprotected void bind(Name name, Object value, boolean allowOverwrites) throws NamingException
NamingExceptionpublic void rebind(String name, Object value) throws NamingException
rebind in interface ContextNamingExceptionpublic void rebind(Name name, Object value) throws NamingException
rebind in interface ContextNamingExceptionpublic void unbind(String name) throws NamingException
unbind in interface ContextNamingExceptionpublic void unbind(Name name) throws NamingException
unbind in interface ContextNamingExceptionpublic void rename(Name oldName, Name newName) throws NamingException
rename in interface ContextNamingExceptionpublic void rename(String oldName, String newName) throws NamingException
rename in interface ContextNamingExceptionpublic Context createSubcontext(String name) throws NamingException
createSubcontext in interface ContextNamingExceptionpublic Context createSubcontext(Name name) throws NamingException
createSubcontext in interface ContextNamingExceptionpublic void destroySubcontext(String name) throws NamingException
destroySubcontext in interface ContextNamingExceptionpublic void destroySubcontext(Name name) throws NamingException
destroySubcontext in interface ContextNamingExceptionpublic String composeName(String name1, String name2) throws NamingException
composeName in interface ContextNamingExceptionpublic Name composeName(Name name1, Name name2) throws NamingException
composeName in interface ContextNamingExceptionCopyright © 2014. All rights reserved.