public final class JndiUtils extends Object
| Modifier | Constructor and Description |
|---|---|
private |
JndiUtils()
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.directory.api.ldap.model.message.Control |
fromJndiControl(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
Control jndiControl)
Deprecated.
We don't use JNDI anymore
|
static org.apache.directory.api.ldap.model.message.Control[] |
fromJndiControls(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
Control... jndiControls)
Deprecated.
We don't use JNDI anymore
|
static org.apache.directory.api.ldap.model.name.Dn |
fromName(Name name)
Convert a
Name to a Dn |
static Control |
toJndiControl(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.model.message.Control control)
Deprecated.
We don't use JNDI anymore
|
static Control[] |
toJndiControls(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.model.message.Control... controls)
Deprecated.
We don't use JNDI anymore
|
static Name |
toName(org.apache.directory.api.ldap.model.name.Dn dn)
Convert a Dn to a
Name |
static void |
wrap(Throwable t)
Wraps a LDAP exception into a NaingException
|
@Deprecated public static Control toJndiControl(org.apache.directory.api.ldap.codec.api.LdapApiService codec, org.apache.directory.api.ldap.model.message.Control control) throws org.apache.directory.api.asn1.EncoderException
codec - The LDAP API service to usecontrol - The control to convertorg.apache.directory.api.asn1.EncoderException - If the conversion failed@Deprecated public static Control[] toJndiControls(org.apache.directory.api.ldap.codec.api.LdapApiService codec, org.apache.directory.api.ldap.model.message.Control... controls) throws org.apache.directory.api.asn1.EncoderException
codec - The LDAP API service to usecontrols - The controls to convertorg.apache.directory.api.asn1.EncoderException - If the conversion failed@Deprecated public static org.apache.directory.api.ldap.model.message.Control fromJndiControl(org.apache.directory.api.ldap.codec.api.LdapApiService codec, Control jndiControl) throws org.apache.directory.api.asn1.DecoderException
codec - The LDAP API service to usejndiControl - The control to convertorg.apache.directory.api.asn1.DecoderException - If the conversion failed@Deprecated public static org.apache.directory.api.ldap.model.message.Control[] fromJndiControls(org.apache.directory.api.ldap.codec.api.LdapApiService codec, Control... jndiControls) throws org.apache.directory.api.asn1.DecoderException
codec - The LDAP API service to usejndiControls - The controls to convertorg.apache.directory.api.asn1.DecoderException - If the conversion failedpublic static void wrap(Throwable t) throws NamingException
t - The original exceptionNamingException - The wrapping JNDI exceptionpublic static Name toName(org.apache.directory.api.ldap.model.name.Dn dn)
Namedn - The Dn to convertCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.