org.apache.directory.shared.ldap.codec.decorators
Class ResponseDecorator<M extends ResultResponse>

java.lang.Object
  extended by org.apache.directory.shared.ldap.codec.decorators.MessageDecorator<M>
      extended by org.apache.directory.shared.ldap.codec.decorators.ResponseDecorator<M>
All Implemented Interfaces:
Decorator<M>, Message, Response, ResultResponse
Direct Known Subclasses:
AddResponseDecorator, BindResponseDecorator, CompareResponseDecorator, DeleteResponseDecorator, ExtendedResponseDecorator, ModifyDnResponseDecorator, ModifyResponseDecorator, SearchResultDoneDecorator

public abstract class ResponseDecorator<M extends ResultResponse>
extends MessageDecorator<M>
implements ResultResponse

A decorator for the Response message. It will store the LdapResult.

Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.codec.decorators.MessageDecorator
messageLength
 
Constructor Summary
ResponseDecorator(LdapCodecService codec, M decoratedMessage)
          Makes a AddRequest encodable.
 
Method Summary
 LdapResult getLdapResult()
           
 void setLdapResult(LdapResultDecorator ldapResultDecorator)
           
 
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.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

ResponseDecorator

public ResponseDecorator(LdapCodecService codec,
                         M decoratedMessage)
Makes a AddRequest encodable.

Parameters:
decoratedMessage - the decorated AddRequest
Method Detail

getLdapResult

public LdapResult getLdapResult()
Specified by:
getLdapResult in interface ResultResponse
Returns:
the ldapResultDecorator

setLdapResult

public void setLdapResult(LdapResultDecorator ldapResultDecorator)
Parameters:
ldapResultDecorator - the ldapResultDecorator to set


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.