|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.dsmlv2.AbstractDsmlMessageDecorator<E>
org.apache.directory.api.dsmlv2.request.AbstractRequestDsml<E>
org.apache.directory.api.dsmlv2.request.AbstractResultResponseRequestDsml<E,F>
public abstract class AbstractResultResponseRequestDsml<E extends ResultResponseRequest<F>,F extends ResultResponse>
Abstract class for DSML requests.
| Constructor Summary | |
|---|---|
AbstractResultResponseRequestDsml(LdapApiService codec,
E ldapMessage)
Creates a new instance of AbstractRequestDsml. |
|
| Method Summary | |
|---|---|
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)
|
F |
getResultResponse()
If called for the first time, this methohd 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. |
| Methods inherited from class org.apache.directory.api.dsmlv2.request.AbstractRequestDsml |
|---|
hasResponse |
| Methods inherited from class org.apache.directory.api.dsmlv2.AbstractDsmlMessageDecorator |
|---|
addAllControls, addControl, get, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, getType, hasControl, put, removeControl, setMessageId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Request |
|---|
hasResponse |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Message |
|---|
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId |
| Constructor Detail |
|---|
public AbstractResultResponseRequestDsml(LdapApiService codec,
E ldapMessage)
ldapMessage - the message to decorate| Method Detail |
|---|
public org.dom4j.Element toDsml(org.dom4j.Element root)
toDsml in interface DsmlDecorator<E extends ResultResponseRequest<F>>toDsml in class AbstractRequestDsml<E extends ResultResponseRequest<F>>root - the root element
public int computeLength()
computeLength in class AbstractRequestDsml<E extends ResultResponseRequest<F>>
public ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
encode in class AbstractRequestDsml<E extends ResultResponseRequest<F>>EncoderExceptionpublic F getResultResponse()
getResultResponse in interface ResultResponseRequest<F extends ResultResponse>public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||