public class ApacheDSContextListener extends Object implements javax.servlet.ServletContextListener
Constructor and Description |
---|
ApacheDSContextListener() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent evt)
Shutdown ApacheDS embedded.
|
void |
contextInitialized(javax.servlet.ServletContextEvent evt)
Startup ApacheDS embedded.
|
protected int |
getLdapPort() |
protected String |
getLdifFile() |
protected String |
getPartitionDN() |
protected List<org.apache.directory.shared.ldap.ldif.LdifEntry> |
loadLdif(InputStream in,
boolean verifyEntries)
Loads an LDIF from an input stream and adds the entries it contains to
the server.
|
protected void |
verify(org.apache.directory.shared.ldap.ldif.LdifEntry entry)
Verifies that an entry exists in the directory with the
specified attributes.
|
protected String getPartitionDN()
protected int getLdapPort()
protected String getLdifFile()
protected List<org.apache.directory.shared.ldap.ldif.LdifEntry> loadLdif(InputStream in, boolean verifyEntries) throws Exception
in
- the input stream containing the LDIF entries to loadverifyEntries
- whether or not all entry additions are checked
to see if they were in fact correctly added to the serverNamingException
- of the load failsException
protected void verify(org.apache.directory.shared.ldap.ldif.LdifEntry entry) throws Exception
entry
- the entry to verifyNamingException
- if there are problems accessing the entryException
public void contextInitialized(javax.servlet.ServletContextEvent evt)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent evt)
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2020 Atlassian. All rights reserved.