Class ResultResponseRequestDecorator<M extends ResultResponseRequest>
- 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>
-
- Type Parameters:
M
- The request to be decorated
- All Implemented Interfaces:
Asn1Object
,Decorator<M>
,Message
,Request
,ResultResponseRequest
- Direct Known Subclasses:
AbandonableRequestDecorator
,SingleReplyRequestDecorator
public abstract class ResultResponseRequestDecorator<M extends ResultResponseRequest> extends RequestDecorator<M> implements ResultResponseRequest
A decorator for the LdapResultResponse message- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description ResultResponseRequestDecorator(LdapApiService codec, M decoratedMessage)
Makes Request a MessageDecorator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultResponse
getResultResponse()
If called for the first time, this method creates a result containing response object for this request.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
-
ResultResponseRequestDecorator
public ResultResponseRequestDecorator(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
- Overrides:
hasResponse
in classRequestDecorator<M extends ResultResponseRequest>
- Returns:
- true if a response can be expected, false otherwise.
-
getResultResponse
public ResultResponse getResultResponse()
If called for the first time, this method creates a result containing response object for this request.- Specified by:
getResultResponse
in interfaceResultResponseRequest
- Returns:
- a result containing response with defaults and the messageId set in response to this specific request
-
-