org.apache.directory.shared.ldap.codec.decorators
Class AbandonableRequestDecorator<M extends AbandonableResultResponseRequest>

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.AbandonableRequestDecorator<M>
All Implemented Interfaces:
Decorator<M>, AbandonableRequest, Message, Request, ResultResponseRequest
Direct Known Subclasses:
AbandonableResultResponseRequestDecorator

public abstract class AbandonableRequestDecorator<M extends AbandonableResultResponseRequest>
extends ResultResponseRequestDecorator<M>
implements 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
AbandonableRequestDecorator(LdapCodecService codec, M decoratedMessage)
          Makes Request a MessageDecorator.
 
Method Summary
 void abandon()
          
 void addAbandonListener(AbandonListener listener)
          
 AbandonableRequest getAbandonableRequest()
          Gets the decorated AbandonableRequest.
 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.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

AbandonableRequestDecorator

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

Parameters:
decoratedMessage - the decorated message
Method Detail

getAbandonableRequest

public AbandonableRequest getAbandonableRequest()
Gets the decorated AbandonableRequest.

Returns:
The decorated AbandonableRequest

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.