Class RequestDecorator<M extends Request>
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.api.MessageDecorator<M>
-
- org.apache.directory.api.ldap.codec.decorators.RequestDecorator<M>
-
- Type Parameters:
M
- The request to decorate
- All Implemented Interfaces:
Asn1Object
,Decorator<M>
,Message
,Request
- Direct Known Subclasses:
AbandonRequestDecorator
,ResultResponseRequestDecorator
,UnbindRequestDecorator
public abstract class RequestDecorator<M extends Request> extends MessageDecorator<M> implements Request
A decorator for the LdapResultResponse message- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description RequestDecorator(LdapApiService codec, M decoratedMessage)
Makes Request a MessageDecorator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasResponse()
Tests to see if this Request produces one or more response types.-
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
-
-
-
-
Constructor Detail
-
RequestDecorator
public RequestDecorator(LdapApiService codec, M decoratedMessage)
Makes Request a MessageDecorator.- Parameters:
codec
- The LDAP service instancedecoratedMessage
- the decorated message
-
-
Method Detail
-
hasResponse
public boolean hasResponse()
Tests to see if this Request produces one or more response types.- Specified by:
hasResponse
in interfaceRequest
- Returns:
- true if a response can be expected, false otherwise.
-
-