public class EntryChangeNotificationControl extends AbstractControl implements ResponseControl
EntryChangeNotification ::= SEQUENCE {
changeType ENUMERATED {
add (1),
delete (2),
modify (4),
modDN (8)
},
previousDN LDAPDN OPTIONAL, -- modifyDN ops. only
changeNumber INTEGER OPTIONAL -- if supported
}
| Modifier and Type | Field and Description |
|---|---|
static String |
OID
OID of this control.
|
logger| Constructor and Description |
|---|
EntryChangeNotificationControl()
Default constructor.
|
EntryChangeNotificationControl(boolean critical)
Creates a new entry change notification control.
|
EntryChangeNotificationControl(PersistentSearchChangeType type)
Creates a new entry change notification control.
|
EntryChangeNotificationControl(PersistentSearchChangeType type,
boolean critical)
Creates a new entry change notification control.
|
EntryChangeNotificationControl(PersistentSearchChangeType type,
String dn,
long number)
Creates a new entry change notification control.
|
EntryChangeNotificationControl(PersistentSearchChangeType type,
String dn,
long number,
boolean critical)
Creates a new entry change notification control.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(byte[] berValue)
Initializes this response control with the supplied BER encoded data.
|
long |
getChangeNumber()
Returns the change number.
|
PersistentSearchChangeType |
getChangeType()
Returns the change type.
|
String |
getPreviousDn()
Returns the previous dn.
|
int |
hashCode()
Returns the hash code for this object.
|
void |
setChangeNumber(long number)
Sets the change number.
|
void |
setChangeType(PersistentSearchChangeType type)
Sets the change type.
|
void |
setPreviousDn(String dn)
Sets the previous dn.
|
String |
toString() |
equals, getCriticality, getOIDclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCriticality, getOIDpublic static final String OID
public EntryChangeNotificationControl()
public EntryChangeNotificationControl(boolean critical)
critical - whether this control is criticalpublic EntryChangeNotificationControl(PersistentSearchChangeType type)
type - persistent search change typepublic EntryChangeNotificationControl(PersistentSearchChangeType type, boolean critical)
type - persistent search change typecritical - whether this control is criticalpublic EntryChangeNotificationControl(PersistentSearchChangeType type, String dn, long number)
type - persistent search change typedn - previous dnnumber - change numberpublic EntryChangeNotificationControl(PersistentSearchChangeType type, String dn, long number, boolean critical)
type - persistent search change typedn - previous dnnumber - change numbercritical - whether this control is criticalpublic PersistentSearchChangeType getChangeType()
public void setChangeType(PersistentSearchChangeType type)
type - change typepublic String getPreviousDn()
public void setPreviousDn(String dn)
dn - previous dnpublic long getChangeNumber()
public void setChangeNumber(long number)
number - change numberpublic int hashCode()
AbstractControlhashCode in class AbstractControlpublic void decode(byte[] berValue)
ResponseControldecode in interface ResponseControlberValue - BER encoded response controlCopyright © 2023. All rights reserved.