org.apache.directory.shared.ldap.codec.decorators
Class SingleReplyRequestDecorator<M extends SingleReplyRequest>

java.lang.Object
  extended by org.apache.directory.shared.ldap.codec.decorators.MessageDecorator<M>
      extended by org.apache.directory.shared.ldap.codec.decorators.RequestDecorator<M>
          extended by org.apache.directory.shared.ldap.codec.decorators.ResultResponseRequestDecorator<M>
              extended by org.apache.directory.shared.ldap.codec.decorators.SingleReplyRequestDecorator<M>
All Implemented Interfaces:
Decorator<M>, AbandonableRequest, Message, Request, ResultResponseRequest, SingleReplyRequest
Direct Known Subclasses:
AddRequestDecorator, BindRequestDecorator, CompareRequestDecorator, DeleteRequestDecorator, ExtendedRequestDecorator, ModifyDnRequestDecorator, ModifyRequestDecorator

public abstract class SingleReplyRequestDecorator<M extends SingleReplyRequest>
extends ResultResponseRequestDecorator<M>
implements SingleReplyRequest, AbandonableRequest

A decorator for the LdapResultResponse message

Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.codec.decorators.MessageDecorator
messageLength
 
Constructor Summary
SingleReplyRequestDecorator(LdapCodecService codec, M decoratedMessage)
          Makes Request a MessageDecorator.
 
Method Summary
 void abandon()
           
 void addAbandonListener(AbandonListener listener)
           
 MessageTypeEnum getResponseType()
          
 boolean isAbandoned()
           
 
Methods inherited from class org.apache.directory.shared.ldap.codec.decorators.ResultResponseRequestDecorator
getResultResponse, hasResponse
 
Methods inherited from class org.apache.directory.shared.ldap.codec.decorators.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.shared.ldap.model.message.ResultResponseRequest
getResultResponse
 
Methods inherited from interface org.apache.directory.shared.ldap.model.message.Request
hasResponse
 
Methods inherited from interface org.apache.directory.shared.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
 
Methods inherited from interface org.apache.directory.shared.ldap.codec.api.Decorator
computeLength, encode
 

Constructor Detail

SingleReplyRequestDecorator

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

Parameters:
decoratedMessage - the decorated message
Method Detail

getResponseType

public MessageTypeEnum getResponseType()

Specified by:
getResponseType in interface SingleReplyRequest

abandon

public void abandon()
Specified by:
abandon in interface AbandonableRequest

isAbandoned

public boolean isAbandoned()
Specified by:
isAbandoned in interface AbandonableRequest

addAbandonListener

public void addAbandonListener(AbandonListener listener)
Specified by:
addAbandonListener in interface AbandonableRequest


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.