public class ModifyRequestImpl extends AbstractAbandonableRequest implements InternalModifyRequest
RESP_TYPE, TYPE
Constructor and Description |
---|
ModifyRequestImpl(int id)
Creates a Lockable ModifyRequest implementing object used to modify the
attributes of an entry.
|
Modifier and Type | Method and Description |
---|---|
void |
addModification(Modification mod)
Adds a Modification to the set of modifications composing this modify
request.
|
boolean |
equals(Object obj)
Checks to see if ModifyRequest stub equals another by factoring in checks
for the name and modification items of the request.
|
Collection<Modification> |
getModificationItems()
Gets an immutable Collection of modification items representing the
atomic changes to perform on the candidate entry to modify.
|
DN |
getName()
Gets the distinguished name of the entry to be modified by this request.
|
MessageTypeEnum |
getResponseType()
Gets the protocol response message type for this request which produces
at least one response.
|
InternalResultResponse |
getResultResponse()
The result containing response for this request.
|
void |
removeModification(Modification mod)
Removes a Modification to the set of modifications composing this
modify request.
|
void |
setName(DN name)
Sets the distinguished name of the entry to be modified by this request.
|
String |
toString()
Get a String representation of a ModifyRequest
|
abandon, addAbandonListener, isAbandoned
hashCode, hasResponse
add, addAll, get, getControls, getMessageId, getType, hasControl, put, remove
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
hasResponse
add, addAll, get, getControls, getMessageId, getType, hasControl, put, remove
abandon, addAbandonListener, isAbandoned
public ModifyRequestImpl(int id)
id
- the sequential message identifierpublic Collection<Modification> getModificationItems()
getModificationItems
in interface InternalModifyRequest
public DN getName()
getName
in interface InternalModifyRequest
public void setName(DN name)
setName
in interface InternalModifyRequest
name
- the DN of the modified entry.public void addModification(Modification mod)
addModification
in interface InternalModifyRequest
mod
- a Modification to addpublic void removeModification(Modification mod)
removeModification
in interface InternalModifyRequest
mod
- a Modification to remove.public MessageTypeEnum getResponseType()
getResponseType
in interface SingleReplyRequest
public InternalResultResponse getResultResponse()
getResultResponse
in interface InternalResultResponseRequest
public boolean equals(Object obj)
equals
in class InternalAbstractMessage
obj
- the object to compare this ModifyRequest toCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.