org.apache.directory.api.ldap.codec.decorators
Class SingleReplyRequestDecorator<M extends SingleReplyRequest<R>,R extends ResultResponse>
java.lang.Object
org.apache.directory.api.ldap.codec.api.MessageDecorator<M>
org.apache.directory.api.ldap.codec.decorators.RequestDecorator<M>
org.apache.directory.api.ldap.codec.decorators.ResultResponseRequestDecorator<M,R>
org.apache.directory.api.ldap.codec.decorators.SingleReplyRequestDecorator<M,R>
- All Implemented Interfaces:
- Decorator<M>, AbandonableRequest, Message, Request, ResultResponseRequest<R>, SingleReplyRequest<R>
- Direct Known Subclasses:
- AddRequestDecorator, BindRequestDecorator, CompareRequestDecorator, DeleteRequestDecorator, ExtendedRequestDecorator, ModifyDnRequestDecorator, ModifyRequestDecorator
public abstract class SingleReplyRequestDecorator<M extends SingleReplyRequest<R>,R extends ResultResponse>
- extends ResultResponseRequestDecorator<M,R>
- implements SingleReplyRequest<R>, AbandonableRequest
A decorator for the LdapResultResponse message
- Author:
- Apache Directory Project
| Methods inherited from class org.apache.directory.api.ldap.codec.api.MessageDecorator |
addAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toString |
| 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 |
SingleReplyRequestDecorator
public SingleReplyRequestDecorator(LdapApiService codec,
M decoratedMessage)
- Makes Request a MessageDecorator.
- Parameters:
decoratedMessage - the decorated message
getResponseType
public MessageTypeEnum getResponseType()
- Gets the protocol response message type for this request which produces
at least one response.
- Specified by:
getResponseType in interface SingleReplyRequest<R extends ResultResponse>
- Returns:
- the message type of the response.
abandon
public void abandon()
- Description copied from interface:
AbandonableRequest
- Abandons this request.
- Specified by:
abandon in interface AbandonableRequest
isAbandoned
public boolean isAbandoned()
- Description copied from interface:
AbandonableRequest
- Checks to see if this request has been abandoned.
- Specified by:
isAbandoned in interface AbandonableRequest
- Returns:
- true if the request has been abandoned.
addAbandonListener
public AbandonableRequest addAbandonListener(AbandonListener listener)
- Description copied from interface:
AbandonableRequest
- Adds listener to be notified if this request gets abandoned.
- Specified by:
addAbandonListener in interface AbandonableRequest
- Parameters:
listener - to be notified if this request gets abandoned.
- Returns:
- An AbandonableRequest reference
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.