Class AbandonableRequestDecorator<M extends AbandonableResultResponseRequest>
- 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>
-
- org.apache.directory.api.ldap.codec.decorators.AbandonableRequestDecorator<M>
-
- Type Parameters:
M
- The Request to decorate
- All Implemented Interfaces:
Asn1Object
,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
-
-
Constructor Summary
Constructors Constructor Description AbandonableRequestDecorator(LdapApiService codec, M decoratedMessage)
Makes Request a MessageDecorator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abandon()
Abandons this request.AbandonableRequest
addAbandonListener(AbandonListener listener)
Adds listener to be notified if this request gets abandoned.AbandonableRequest
getAbandonableRequest()
Gets the decorated AbandonableRequest.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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.directory.api.asn1.Asn1Object
computeLength, encode
-
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.model.message.Request
hasResponse
-
-
-
-
Constructor Detail
-
AbandonableRequestDecorator
public AbandonableRequestDecorator(LdapApiService codec, M decoratedMessage)
Makes Request a MessageDecorator.- Parameters:
codec
- The LDAP service instancedecoratedMessage
- the decorated message
-
-
Method Detail
-
getAbandonableRequest
public AbandonableRequest getAbandonableRequest()
Gets the decorated AbandonableRequest.- Returns:
- The decorated
AbandonableRequest
-
abandon
public void abandon()
Abandons this request.- Specified by:
abandon
in interfaceAbandonableRequest
-
isAbandoned
public boolean isAbandoned()
Checks to see if this request has been abandoned.- Specified by:
isAbandoned
in interfaceAbandonableRequest
- Returns:
- true if the request has been abandoned.
-
addAbandonListener
public AbandonableRequest addAbandonListener(AbandonListener listener)
Adds listener to be notified if this request gets abandoned.- Specified by:
addAbandonListener
in interfaceAbandonableRequest
- Parameters:
listener
- to be notified if this request gets abandoned.- Returns:
- An AbandonableRequest reference
-
-