Class Overview
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
}
Summary
Constants |
int |
ADD |
Indicates an entry which has been added. |
int |
DELETE |
Indicates an entry which has been deleted. |
int |
MODIFY |
Indicates an entry which has been modified. |
String |
OID |
The entry-change response control's assigned object identifier
is 2.16.840.1.113730.3.4.7. |
int |
RENAME |
Indicates an entry which has been renamed. |
Public Methods |
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.
|
[Expand]
Inherited Methods |
From class
com.sun.jndi.ldap.BasicControl
byte[]
|
getEncodedValue()
Retrieves the control's ASN.1 BER encoded value.
|
String
|
getID()
Retrieves the control's object identifier string.
|
boolean
|
isCritical()
Determines the control's criticality.
|
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
javax.naming.ldap.Control
abstract
byte[]
|
getEncodedValue()
Retrieves the ASN.1 BER encoded value of the LDAP control.
|
abstract
String
|
getID()
Retrieves the object identifier assigned for the LDAP control.
|
abstract
boolean
|
isCritical()
Determines the criticality of the LDAP control.
|
|
Constants
public
static
final
int
ADD
Indicates an entry which has been added.
Constant Value:
1
(0x00000001)
public
static
final
int
DELETE
Indicates an entry which has been deleted.
Constant Value:
2
(0x00000002)
public
static
final
int
MODIFY
Indicates an entry which has been modified.
Constant Value:
4
(0x00000004)
public
static
final
String
OID
The entry-change response control's assigned object identifier
is 2.16.840.1.113730.3.4.7.
Constant Value:
"2.16.840.1.113730.3.4.7"
public
static
final
int
RENAME
Indicates an entry which has been renamed.
Constant Value:
8
(0x00000008)
Public Constructors
public
EntryChangeResponseControl
(String id, boolean criticality, byte[] value)
Constructs a new instance of EntryChangeResponseControl.
Parameters
id
| The control's object identifier string. |
criticality
| The control's criticality. |
value
| The control's ASN.1 BER encoded value.
May be null. |
Throws
IOException
| if an error is encountered
while decoding the control's value.
|
Public Methods
public
long
getChangeNumber
()
Retrieves the change number assigned by the server for this change.
Returns -1 if this feature is not supported by the server.
Returns
- The change number or -1 if unsupported.
public
int
getChangeType
()
Retrieves the type of change that occurred.
public
String
getPreviousDN
()
Retrieves the previous distinguished name of the entry before it was
renamed and/or moved. This method applies only to RENAME changes.
Returns
- The previous distinguished name or null if not applicable.