M
- The request to be decoratedpublic abstract class SingleReplyRequestDecorator<M extends SingleReplyRequest> extends ResultResponseRequestDecorator<M> implements SingleReplyRequest, AbandonableRequest
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
equals, 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)
codec
- The LDAP service instancedecoratedMessage
- the decorated messagepublic MessageTypeEnum getResponseType()
getResponseType
in interface SingleReplyRequest
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–2018 The Apache Software Foundation. All rights reserved.