@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(java.lang.String distinguishedName)
distinguishedName
- The DN to use for the entry.public LDAPEntry(java.lang.String distinguishedName, LDAPAttributeSet attrs)
distinguishedName
- The DN to use for the entry.attrs
- The attributes to use for the entry.public java.lang.String getDN()
public LDAPAttributeSet getAttributeSet()
public LDAPAttributeSet getAttributeSet(java.lang.String subtype)
subtype
- The subtype for the attributes to retrieve.public LDAPAttribute getAttribute(java.lang.String attrName)
attrName
- The name of the attribute to retrieve.null
if there is none.public LDAPAttribute getAttribute(java.lang.String attrName, 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.public final Entry toEntry()
Entry
object that is the equivalent of this LDAP
entry.Entry
object that is the equivalent of this LDAP
entry.public java.lang.String toString()
toString
in class java.lang.Object