Methods Summary |
---|
public java.lang.Object | addToEnvironment(java.lang.String propName, java.lang.Object value)
Context ctx = getTargetContext();
return ctx.addToEnvironment(propName, value);
|
public void | bind(javax.naming.Name name, java.lang.Object newObj)
Context ctx = getTargetContext();
ctx.bind(name, newObj);
|
public void | bind(java.lang.String name, java.lang.Object newObj)
Context ctx = getTargetContext();
ctx.bind(name, newObj);
|
public void | close()
cpe = null;
env = null;
if (contCtx != null) {
contCtx.close();
contCtx = null;
}
|
public javax.naming.Name | composeName(javax.naming.Name name, javax.naming.Name prefix)
Context ctx = getTargetContext();
return ctx.composeName(name, prefix);
|
public java.lang.String | composeName(java.lang.String name, java.lang.String prefix)
Context ctx = getTargetContext();
return ctx.composeName(name, prefix);
|
public javax.naming.Context | createSubcontext(javax.naming.Name name)
Context ctx = getTargetContext();
return ctx.createSubcontext(name);
|
public javax.naming.Context | createSubcontext(java.lang.String name)
Context ctx = getTargetContext();
return ctx.createSubcontext(name);
|
public void | destroySubcontext(javax.naming.Name name)
Context ctx = getTargetContext();
ctx.destroySubcontext(name);
|
public void | destroySubcontext(java.lang.String name)
Context ctx = getTargetContext();
ctx.destroySubcontext(name);
|
public java.util.Hashtable | getEnvironment()
Context ctx = getTargetContext();
return ctx.getEnvironment();
|
public java.lang.String | getNameInNamespace()
Context ctx = getTargetContext();
return ctx.getNameInNamespace();
|
public javax.naming.NameParser | getNameParser(javax.naming.Name name)
Context ctx = getTargetContext();
return ctx.getNameParser(name);
|
public javax.naming.NameParser | getNameParser(java.lang.String name)
Context ctx = getTargetContext();
return ctx.getNameParser(name);
|
protected javax.naming.Context | getTargetContext()
if (contCtx == null) {
if (cpe.getResolvedObj() == null)
throw (NamingException)cpe.fillInStackTrace();
contCtx = NamingManager.getContext(cpe.getResolvedObj(),
cpe.getAltName(),
cpe.getAltNameCtx(),
env);
if (contCtx == null)
throw (NamingException)cpe.fillInStackTrace();
}
return contCtx;
|
public javax.naming.NamingEnumeration | list(javax.naming.Name name)
Context ctx = getTargetContext();
return ctx.list(name);
|
public javax.naming.NamingEnumeration | list(java.lang.String name)
Context ctx = getTargetContext();
return ctx.list(name);
|
public javax.naming.NamingEnumeration | listBindings(javax.naming.Name name)
Context ctx = getTargetContext();
return ctx.listBindings(name);
|
public javax.naming.NamingEnumeration | listBindings(java.lang.String name)
Context ctx = getTargetContext();
return ctx.listBindings(name);
|
public java.lang.Object | lookup(javax.naming.Name name)
Context ctx = getTargetContext();
return ctx.lookup(name);
|
public java.lang.Object | lookup(java.lang.String name)
Context ctx = getTargetContext();
return ctx.lookup(name);
|
public java.lang.Object | lookupLink(javax.naming.Name name)
Context ctx = getTargetContext();
return ctx.lookupLink(name);
|
public java.lang.Object | lookupLink(java.lang.String name)
Context ctx = getTargetContext();
return ctx.lookupLink(name);
|
public void | rebind(javax.naming.Name name, java.lang.Object newObj)
Context ctx = getTargetContext();
ctx.rebind(name, newObj);
|
public void | rebind(java.lang.String name, java.lang.Object newObj)
Context ctx = getTargetContext();
ctx.rebind(name, newObj);
|
public java.lang.Object | removeFromEnvironment(java.lang.String propName)
Context ctx = getTargetContext();
return ctx.removeFromEnvironment(propName);
|
public void | rename(javax.naming.Name name, javax.naming.Name newName)
Context ctx = getTargetContext();
ctx.rename(name, newName);
|
public void | rename(java.lang.String name, java.lang.String newName)
Context ctx = getTargetContext();
ctx.rename(name, newName);
|
public javax.naming.spi.ResolveResult | resolveToClass(javax.naming.Name name, java.lang.Class contextType)
if (cpe.getResolvedObj() == null)
throw (NamingException)cpe.fillInStackTrace();
Resolver res = NamingManager.getResolver(cpe.getResolvedObj(),
cpe.getAltName(),
cpe.getAltNameCtx(),
env);
if (res == null)
throw (NamingException)cpe.fillInStackTrace();
return res.resolveToClass(name, contextType);
|
public javax.naming.spi.ResolveResult | resolveToClass(java.lang.String name, java.lang.Class contextType)
if (cpe.getResolvedObj() == null)
throw (NamingException)cpe.fillInStackTrace();
Resolver res = NamingManager.getResolver(cpe.getResolvedObj(),
cpe.getAltName(),
cpe.getAltNameCtx(),
env);
if (res == null)
throw (NamingException)cpe.fillInStackTrace();
return res.resolveToClass(name, contextType);
|
public void | unbind(java.lang.String name)
Context ctx = getTargetContext();
ctx.unbind(name);
|
public void | unbind(javax.naming.Name name)
Context ctx = getTargetContext();
ctx.unbind(name);
|