public abstract class AbstractResultResponseRequestDsml<E extends ResultResponseRequest,F extends ResultResponse> extends AbstractRequestDsml<E> implements ResultResponseRequest, AbandonableRequest
| Constructor and Description |
|---|
AbstractResultResponseRequestDsml(LdapApiService codec,
E ldapMessage)
Creates a new instance of AbstractRequestDsml.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abandon()
Abandons this request.
|
AbandonableRequest |
addAbandonListener(AbandonListener listener)
Adds listener to be notified if this request gets abandoned.
|
int |
computeLength() |
ByteBuffer |
encode(ByteBuffer buffer) |
ResultResponse |
getResultResponse()
If called for the first time, this method creates a result containing
response object for this request.
|
boolean |
isAbandoned()
Checks to see if this request has been abandoned.
|
org.dom4j.Element |
toDsml(org.dom4j.Element root)
Creates the Request Element and adds RequestID and Controls.
|
hasResponseaddAllControls, addControl, get, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, getType, hasControl, put, removeControl, setMessageIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasResponseaddAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdpublic AbstractResultResponseRequestDsml(LdapApiService codec, E ldapMessage)
ldapMessage - the message to decoratepublic org.dom4j.Element toDsml(org.dom4j.Element root)
toDsml in interface DsmlDecorator<E extends ResultResponseRequest>toDsml in class AbstractRequestDsml<E extends ResultResponseRequest>root - the root elementpublic int computeLength()
computeLength in class AbstractRequestDsml<E extends ResultResponseRequest>public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in class AbstractRequestDsml<E extends ResultResponseRequest>EncoderExceptionpublic ResultResponse getResultResponse()
getResultResponse in interface ResultResponseRequestpublic void abandon()
abandon in interface AbandonableRequestpublic boolean isAbandoned()
isAbandoned in interface AbandonableRequestpublic AbandonableRequest addAbandonListener(AbandonListener listener)
addAbandonListener in interface AbandonableRequestlistener - to be notified if this request gets abandoned.Copyright © 2021. All rights reserved.