| java.lang.Object org.apache.harmony.jndi.provider.ldap.LdapContextImpl
All known Subclasses: org.apache.harmony.jndi.provider.ldap.LdapSchemaAttrDefContextImpl, org.apache.harmony.jndi.provider.ldap.LdapSchemaClassDefContextImpl, org.apache.harmony.jndi.provider.ldap.LdapSchemaContextImpl,
LdapContextImpl | public class LdapContextImpl implements LdapContext,EventDirContext(Code) | | This context implements LdapContext, it's main entry point of all JNDI ldap
operations.
|
Inner Class :public static interface UnsolicitedListener | |
Method Summary | |
public void | addNamingListener(Name name, String filter, Object[] filterArgs, SearchControls searchControls, NamingListener namingListener) | public void | addNamingListener(Name name, String filter, SearchControls searchControls, NamingListener namingListener) | public void | addNamingListener(String name, String filter, Object[] filterArgs, SearchControls searchControls, NamingListener namingListener) | public void | addNamingListener(String name, String filter, SearchControls searchControls, NamingListener namingListener) | public void | addNamingListener(Name name, int scope, NamingListener namingListener) | public void | addNamingListener(String s, int i, NamingListener namingListener) | public Object | addToEnvironment(String s, Object o) | public void | bind(Name name, Object obj, Attributes attributes) | public void | bind(String s, Object obj, Attributes attributes) | public void | bind(Name n, Object o) | public void | bind(String s, Object o) | public void | close() | public Name | composeName(Name name, Name prefix) Only instance of LdapName or CompositeName are acceptable. | public String | composeName(String s, String pfx) | protected Name | convertFromStringToName(String s) convert String name to Name instance, we
assume the String name parameter is using composite name
syntax (see LDAP service providers guidlines, part 4). | protected String | convertToRelativeName(String dn, String base) convert absolute dn to the dn relatived to the dn of
targetContextDN . | public DirContext | createSubcontext(Name name, Attributes attributes) | public DirContext | createSubcontext(String s, Attributes attributes) | public Context | createSubcontext(Name name) | public Context | createSubcontext(String s) | public void | destroySubcontext(Name name) | public void | destroySubcontext(String s) | protected void | doBasicOperation(LdapOperation op) Do operations with one request and one response which contains
LdapResult. | LdapSearchResult | doSearch(SearchOp op) | LdapSearchResult | doSearch(String dn, Filter filter, SearchControls controls) | public ExtendedResponse | extendedOperation(ExtendedRequest request) | protected void | finalize() | protected Context | findNnsContext(Name name) | Hashtable<String, Object> | findSchemaDefInfo(String schemaType, String className) | public Attributes | getAttributes(Name name) | public Attributes | getAttributes(Name name, String[] as) | public Attributes | getAttributes(String s) | public Attributes | getAttributes(String s, String[] as) | public Control[] | getConnectControls() | public Hashtable, ?> | getEnvironment() | public String | getNameInNamespace() | public NameParser | getNameParser(Name name) | public NameParser | getNameParser(String s) | public Control[] | getRequestControls() | public Control[] | getResponseControls() | public DirContext | getSchema(Name name) | public DirContext | getSchema(String s) | DirContext | getSchemaAttributeDefinition(String name) | public DirContext | getSchemaClassDefinition(Name name) | public DirContext | getSchemaClassDefinition(String s) | protected String | getTargetDN(Name name, Name prefix) | public NamingEnumeration<NameClassPair> | list(Name name) | public NamingEnumeration<NameClassPair> | list(String s) | public NamingEnumeration<Binding> | listBindings(Name name) | public NamingEnumeration<Binding> | listBindings(String s) | public Object | lookup(Name name) | public Object | lookup(String s) | public Object | lookupLink(Name name) | public Object | lookupLink(String s) | public void | modifyAttributes(Name name, int i, Attributes attributes) | public void | modifyAttributes(Name name, ModificationItem[] modificationItems) | public void | modifyAttributes(String s, int i, Attributes attributes) | public void | modifyAttributes(String s, ModificationItem[] modificationItems) | public LdapContext | newInstance(Control[] reqCtrls) | public void | rebind(Name name, Object obj, Attributes attributes) | public void | rebind(String s, Object obj, Attributes attributes) | public void | rebind(Name n, Object o) | public void | rebind(String s, Object o) | public void | reconnect(Control[] ac) | public Object | removeFromEnvironment(String s) | public void | removeNamingListener(NamingListener namingListener) | public void | rename(Name nOld, Name nNew) | public void | rename(String sOld, String sNew) | public NamingEnumeration<SearchResult> | search(Name name, Attributes attributes) | public NamingEnumeration<SearchResult> | search(Name name, Attributes attributes, String[] as) | public NamingEnumeration<SearchResult> | search(Name name, String filter, Object[] objs, SearchControls searchControls) | public NamingEnumeration<SearchResult> | search(Name name, String filter, SearchControls searchControls) | public NamingEnumeration<SearchResult> | search(String name, Attributes attributes) | public NamingEnumeration<SearchResult> | search(String name, Attributes attributes, String[] as) | public NamingEnumeration<SearchResult> | search(String name, String filter, Object[] objs, SearchControls searchControls) | public NamingEnumeration<SearchResult> | search(String name, String filter, SearchControls searchControls) | public void | setRequestControls(Control[] controls) | public boolean | targetMustExist() | public void | unbind(Name n) | public void | unbind(String s) |
contextDn | protected Name contextDn(Code) | | name of the context
|
composeName | public Name composeName(Name name, Name prefix) throws NamingException(Code) | | Only instance of LdapName or CompositeName are acceptable. If both
name and prefix are LdapName, a new
LdapName instance composed of the two name will be return , else a
CompositeName will be return.
|
convertFromStringToName | protected Name convertFromStringToName(String s) throws InvalidNameException(Code) | | convert String name to Name instance, we
assume the String name parameter is using composite name
syntax (see LDAP service providers guidlines, part 4).
Parameters: s - String name to be converted Name instance equivalent to s throws: InvalidNameException - occurs error while converting |
convertToRelativeName | protected String convertToRelativeName(String dn, String base)(Code) | | convert absolute dn to the dn relatived to the dn of
targetContextDN .
Parameters: dn - absolute dn Parameters: base - base dn of the relative name dn relatived to the dn of base |
doBasicOperation | protected void doBasicOperation(LdapOperation op) throws NamingException(Code) | | Do operations with one request and one response which contains
LdapResult. This is the convenience way to do the most of ldap operation
except search opeartion which has multi-response, bind operation, abandon
and unbind operations which have no response.
Parameters: op - throws: NamingException - |
finalize | protected void finalize()(Code) | | |
|
|