Package org.ldaptive.control
Class EntryChangeNotificationControl
java.lang.Object
org.ldaptive.control.AbstractControl
org.ldaptive.control.AbstractResponseControl
org.ldaptive.control.EntryChangeNotificationControl
- All Implemented Interfaces:
Control,ResponseControl,Freezable
Response control for persistent search. See http://tools.ietf.org/id/draft-ietf-ldapext-psearch-03.txt. Control is
defined as:
EntryChangeNotification ::= SEQUENCE {
changeType ENUMERATED {
add (1),
delete (2),
modify (4),
modDN (8)
},
previousDN LDAPDN OPTIONAL, -- modifyDN ops. only
changeNumber INTEGER OPTIONAL -- if supported
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classParse handler implementation for the change number.private static classParse handler implementation for the change type.private static classParse handler implementation for the previous dn. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longchange number.private PersistentSearchChangeTypechange type.private static final inthash code seed.static final StringOID of this control.private Stringprevious dn.Fields inherited from class org.ldaptive.control.AbstractControl
logger -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EntryChangeNotificationControl(boolean critical) Creates a new entry change notification control.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. -
Method Summary
Methods inherited from class org.ldaptive.control.AbstractResponseControl
assertMutable, freeze, freezeAndAssertMutable, isFrozenMethods inherited from class org.ldaptive.control.AbstractControl
getCriticality, getOIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ldaptive.control.Control
getCriticality, getOID
-
Field Details
-
OID
OID of this control.- See Also:
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
changeType
change type. -
previousDn
previous dn. -
changeNumber
private long changeNumberchange number.
-
-
Constructor Details
-
EntryChangeNotificationControl
public EntryChangeNotificationControl()Default constructor. -
EntryChangeNotificationControl
public EntryChangeNotificationControl(boolean critical) Creates a new entry change notification control.- Parameters:
critical- whether this control is critical
-
EntryChangeNotificationControl
Creates a new entry change notification control.- Parameters:
type- persistent search change type
-
EntryChangeNotificationControl
Creates a new entry change notification control.- Parameters:
type- persistent search change typecritical- whether this control is critical
-
EntryChangeNotificationControl
Creates a new entry change notification control.- Parameters:
type- persistent search change typedn- previous dnnumber- change number
-
EntryChangeNotificationControl
public EntryChangeNotificationControl(PersistentSearchChangeType type, String dn, long number, boolean critical) Creates a new entry change notification control.- Parameters:
type- persistent search change typedn- previous dnnumber- change numbercritical- whether this control is critical
-
-
Method Details
-
getChangeType
Returns the change type.- Returns:
- change type
-
getPreviousDn
Returns the previous dn.- Returns:
- previous dn
-
getChangeNumber
public long getChangeNumber()Returns the change number.- Returns:
- change number
-
equals
- Overrides:
equalsin classAbstractControl
-
hashCode
public int hashCode()Description copied from class:AbstractControlReturns the hash code for this object.- Specified by:
hashCodein classAbstractControl- Returns:
- hash code
-
toString
- Overrides:
toStringin classAbstractControl
-
decode
Description copied from interface:ResponseControlInitializes this response control with the supplied BER encoded data.- Parameters:
encoded- BER encoded response control
-