org.apache.directory.api.ldap.codec.decorators
Class ResultResponseRequestDecorator<M extends ResultResponseRequest<R>,R extends ResultResponse>
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,R>
- All Implemented Interfaces:
- Decorator<M>, Message, Request, ResultResponseRequest<R>
- Direct Known Subclasses:
- AbandonableRequestDecorator, SingleReplyRequestDecorator
public abstract class ResultResponseRequestDecorator<M extends ResultResponseRequest<R>,R extends ResultResponse>
- extends RequestDecorator<M>
- implements ResultResponseRequest<R>
A decorator for the LdapResultResponse message
- Author:
- Apache Directory Project
|
Method Summary |
R |
getResultResponse()
If called for the first time, this methohd 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 interface org.apache.directory.api.ldap.model.message.Message |
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId |
ResultResponseRequestDecorator
public ResultResponseRequestDecorator(LdapApiService codec,
M decoratedMessage)
- Makes Request a MessageDecorator.
- Parameters:
decoratedMessage - the decorated message
hasResponse
public boolean hasResponse()
- Tests to see if this Request produces one or more response types.
- Specified by:
hasResponse in interface Request- Overrides:
hasResponse in class RequestDecorator<M extends ResultResponseRequest<R>>
- Returns:
- true if a response can be expected, false otherwise.
getResultResponse
public R getResultResponse()
- If called for the first time, this methohd creates a result containing
response object for this request.
- Specified by:
getResultResponse in interface ResultResponseRequest<R extends ResultResponse>
- Returns:
- a result containing response with defaults and the messageId set
in response to this specific request
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.