use of javax.naming.spi.ResolveResult in project jdk8u_jdk by JetBrains.
the class GenericURLDirContext method modifyAttributes.
public void modifyAttributes(String name, ModificationItem[] mods) throws NamingException {
ResolveResult res = getRootURLContext(name, myEnv);
DirContext ctx = (DirContext) res.getResolvedObj();
try {
ctx.modifyAttributes(res.getRemainingName(), mods);
} finally {
ctx.close();
}
}
use of javax.naming.spi.ResolveResult in project jdk8u_jdk by JetBrains.
the class GenericURLDirContext method search.
public NamingEnumeration<SearchResult> search(String name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException {
ResolveResult res = getRootURLContext(name, myEnv);
DirContext ctx = (DirContext) res.getResolvedObj();
try {
return ctx.search(res.getRemainingName(), matchingAttributes, attributesToReturn);
} finally {
ctx.close();
}
}
use of javax.naming.spi.ResolveResult in project jdk8u_jdk by JetBrains.
the class GenericURLDirContext method getAttributes.
public Attributes getAttributes(String name) throws NamingException {
ResolveResult res = getRootURLContext(name, myEnv);
DirContext ctx = (DirContext) res.getResolvedObj();
try {
return ctx.getAttributes(res.getRemainingName());
} finally {
ctx.close();
}
}
use of javax.naming.spi.ResolveResult in project jdk8u_jdk by JetBrains.
the class GenericURLDirContext method modifyAttributes.
public void modifyAttributes(String name, int mod_op, Attributes attrs) throws NamingException {
ResolveResult res = getRootURLContext(name, myEnv);
DirContext ctx = (DirContext) res.getResolvedObj();
try {
ctx.modifyAttributes(res.getRemainingName(), mod_op, attrs);
} finally {
ctx.close();
}
}
use of javax.naming.spi.ResolveResult in project jdk8u_jdk by JetBrains.
the class GenericURLDirContext method search.
public NamingEnumeration<SearchResult> search(String name, Attributes matchingAttributes) throws NamingException {
ResolveResult res = getRootURLContext(name, myEnv);
DirContext ctx = (DirContext) res.getResolvedObj();
try {
return ctx.search(res.getRemainingName(), matchingAttributes);
} finally {
ctx.close();
}
}
Aggregations