|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jndi.ldap.BasicControl
com.sun.jndi.ldap.EntryChangeResponseControl
public final class EntryChangeResponseControl
This class implements the LDAPv3 Response Control for entry-change notification as defined in draft-ietf-ldapext-psearch-02.txt. The control's value has the following ASN.1 definition:
EntryChangeNotification ::= SEQUENCE {
changeType ENUMERATED {
add (1),
delete (2),
modify (4),
modDN (8)
},
previousDN LDAPDN OPTIONAL, -- modifyDN ops. only
changeNumber INTEGER OPTIONAL, -- if supported
}
PersistentSearchControl,
ResponseControlFactory,
Serialized Form| Field Summary | |
|---|---|
static int |
ADD
Indicates an entry which has been added. |
static int |
DELETE
Indicates an entry which has been deleted. |
static int |
MODIFY
Indicates an entry which has been modified. |
static String |
OID
The entry-change response control's assigned object identifier is 2.16.840.1.113730.3.4.7. |
static int |
RENAME
Indicates an entry which has been renamed. |
| Fields inherited from class com.sun.jndi.ldap.BasicControl |
|---|
criticality, id, value |
| Fields inherited from interface javax.naming.ldap.Control |
|---|
CRITICAL, NONCRITICAL |
| Constructor Summary | |
|---|---|
EntryChangeResponseControl(String id,
boolean criticality,
byte[] value)
Constructs a new instance of EntryChangeResponseControl. |
|
| Method Summary | |
|---|---|
long |
getChangeNumber()
Retrieves the change number assigned by the server for this change. |
int |
getChangeType()
Retrieves the type of change that occurred. |
String |
getPreviousDN()
Retrieves the previous distinguished name of the entry before it was renamed and/or moved. |
| Methods inherited from class com.sun.jndi.ldap.BasicControl |
|---|
getEncodedValue, getID, isCritical |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String OID
public static final int ADD
public static final int DELETE
public static final int MODIFY
public static final int RENAME
| Constructor Detail |
|---|
public EntryChangeResponseControl(String id,
boolean criticality,
byte[] value)
throws IOException
id - The control's object identifier string.criticality - The control's criticality.value - The control's ASN.1 BER encoded value.
May be null.
IOException - if an error is encountered
while decoding the control's value.| Method Detail |
|---|
public int getChangeType()
public String getPreviousDN()
public long getChangeNumber()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||