org.apache.directory.api.ldap.codec.decorators
Class SingleReplyRequestDecorator<M extends SingleReplyRequest<R>,R extends ResultResponse>

java.lang.Object
  extended by org.apache.directory.api.ldap.codec.api.MessageDecorator<M>
      extended by org.apache.directory.api.ldap.codec.decorators.RequestDecorator<M>
          extended by org.apache.directory.api.ldap.codec.decorators.ResultResponseRequestDecorator<M,R>
              extended by 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

Field Summary
 
Fields inherited from class org.apache.directory.api.ldap.codec.api.MessageDecorator
messageLength
 
Constructor Summary
SingleReplyRequestDecorator(LdapApiService codec, M decoratedMessage)
          Makes Request a MessageDecorator.
 
Method Summary
 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.
 
Methods inherited from class org.apache.directory.api.ldap.codec.decorators.ResultResponseRequestDecorator
getResultResponse, hasResponse
 
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponseRequest
getResultResponse
 
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
 
Methods inherited from interface org.apache.directory.api.ldap.codec.api.Decorator
computeLength, encode
 

Constructor Detail

SingleReplyRequestDecorator

public SingleReplyRequestDecorator(LdapApiService codec,
                                   M decoratedMessage)
Makes Request a MessageDecorator.

Parameters:
decoratedMessage - the decorated message
Method Detail

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.