public class AddRequestImpl extends AbstractAbandonableRequest implements InternalAddRequest
RESP_TYPE, TYPE
Constructor and Description |
---|
AddRequestImpl(int id)
Creates an AddRequest implementation to create a new entry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Checks to see if an object is equivalent to this AddRequest.
|
Entry |
getEntry()
Gets the entry to add.
|
DN |
getEntryDn()
Gets the distinguished name of the entry to add.
|
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.
|
int |
hashCode() |
void |
setEntry(Entry entry)
Sets the Entry to add.
|
void |
setEntryDn(DN dn)
Sets the distinguished name of the entry to add.
|
String |
toString() |
abandon, addAbandonListener, isAbandoned
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 AddRequestImpl(int id)
id
- the sequence identifier of the AddRequest message.public DN getEntryDn()
getEntryDn
in interface InternalAddRequest
public void setEntryDn(DN dn)
setEntryDn
in interface InternalAddRequest
entry
- the Dn of the added entry.public Entry getEntry()
getEntry
in interface InternalAddRequest
public void setEntry(Entry entry)
setEntry
in interface InternalAddRequest
entry
- the added Entrypublic 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 test for equality to thispublic int hashCode()
hashCode
in class InternalAbstractRequest
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.