public abstract class SingleReplyRequestDecorator<M extends SingleReplyRequest> extends ResultResponseRequestDecorator<M> implements SingleReplyRequest, AbandonableRequest
messageLength
Constructor and Description |
---|
SingleReplyRequestDecorator(LdapApiService codec,
M decoratedMessage)
Makes Request a MessageDecorator.
|
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.
|
MessageTypeEnum |
getResponseType()
Gets the protocol response message type for this request which produces
at least one response.
|
boolean |
isAbandoned()
Checks to see if this request has been abandoned.
|
getResultResponse, hasResponse
addAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getResultResponse
hasResponse
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
computeLength, encode
computeLength, encode
public SingleReplyRequestDecorator(LdapApiService codec, M decoratedMessage)
decoratedMessage
- the decorated messagepublic MessageTypeEnum getResponseType()
getResponseType
in interface SingleReplyRequest
public void abandon()
AbandonableRequest
abandon
in interface AbandonableRequest
public boolean isAbandoned()
AbandonableRequest
isAbandoned
in interface AbandonableRequest
public AbandonableRequest addAbandonListener(AbandonListener listener)
AbandonableRequest
addAbandonListener
in interface AbandonableRequest
listener
- to be notified if this request gets abandoned.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.