@NotExtensible @NotMutable @ThreadSafety(level=NOT_THREADSAFE) public class LDAPEntry extends java.lang.Object implements java.io.Serializable
Entry
class should be
used instead.Constructor and Description |
---|
LDAPEntry()
Creates a new LDAP entry with a zero-length DN and no attributes.
|
LDAPEntry(Entry entry)
Creates a new LDAP entry from the provided
Entry object. |
LDAPEntry(java.lang.String distinguishedName)
Creates a new LDAP entry with the provided DN and no attributes.
|
LDAPEntry(java.lang.String distinguishedName,
LDAPAttributeSet attrs)
Creates a new LDAP entry with the provided DN and attributes.
|
Modifier and Type | Method and Description |
---|---|
LDAPAttribute |
getAttribute(java.lang.String attrName)
Retrieves the attribute with the specified name.
|
LDAPAttribute |
getAttribute(java.lang.String attrName,
java.lang.String lang)
Retrieves the attribute with the specified base name and language subtype.
|
LDAPAttributeSet |
getAttributeSet()
Retrieves the attributes for this entry.
|
LDAPAttributeSet |
getAttributeSet(java.lang.String subtype)
Retrieves the set of attributes containing the specified subtype for this
entry.
|
java.lang.String |
getDN()
Retrieves the distinguished name for this entry.
|
Entry |
toEntry()
Retrieves an
Entry object that is the equivalent of this LDAP
entry. |
java.lang.String |
toString()
Retrieves a string representation of this LDAP entry.
|
public LDAPEntry()
public LDAPEntry(@NotNull java.lang.String distinguishedName)
distinguishedName
- The DN to use for the entry.public LDAPEntry(@NotNull java.lang.String distinguishedName, @Nullable LDAPAttributeSet attrs)
distinguishedName
- The DN to use for the entry.attrs
- The attributes to use for the entry.@NotNull public java.lang.String getDN()
@NotNull public LDAPAttributeSet getAttributeSet()
@NotNull public LDAPAttributeSet getAttributeSet(@NotNull java.lang.String subtype)
subtype
- The subtype for the attributes to retrieve.@Nullable public LDAPAttribute getAttribute(@NotNull java.lang.String attrName)
attrName
- The name of the attribute to retrieve.null
if there is none.@Nullable public LDAPAttribute getAttribute(@NotNull java.lang.String attrName, @Nullable java.lang.String lang)
attrName
- The base name of the attribute to retrieve.lang
- The language subtype for the attribute to retrieve.null
if there is none.@NotNull public final Entry toEntry()
Entry
object that is the equivalent of this LDAP
entry.Entry
object that is the equivalent of this LDAP
entry.