E
- The response request result typeF
- The response result typepublic 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)
Encode the request.
|
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.
|
hasResponse
addAllControls, addControl, get, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, getType, hasControl, put, removeControl, setMessageId
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasResponse
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
public AbstractResultResponseRequestDsml(LdapApiService codec, E ldapMessage)
codec
- The LDAP Service to useldapMessage
- 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>
buffer
- The buffer to allocateEncoderException
- If we had an error while encoding the requestpublic ResultResponse getResultResponse()
getResultResponse
in interface ResultResponseRequest
public void abandon()
abandon
in interface AbandonableRequest
public boolean isAbandoned()
isAbandoned
in interface AbandonableRequest
public AbandonableRequest addAbandonListener(AbandonListener listener)
addAbandonListener
in interface AbandonableRequest
listener
- to be notified if this request gets abandoned.Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.