org.apache.directory.ldap.client.api.message
Class AbstractResponseWithResult

java.lang.Object
  extended by org.apache.directory.ldap.client.api.message.AbstractMessage
      extended by org.apache.directory.ldap.client.api.message.AbstractResponseWithResult
All Implemented Interfaces:
Message, Response, ResponseWithResult
Direct Known Subclasses:
AddResponse, BindResponse, CompareResponse, DeleteResponse, ExtendedResponse, ModifyDnResponse, ModifyResponse, SearchResultDone

public abstract class AbstractResponseWithResult
extends AbstractMessage
implements ResponseWithResult

A request who's one or more responses contains an LdapResult.

Version:
$Rev: 760984 $
Author:
Apache Directory Project

Constructor Summary
AbstractResponseWithResult()
           
 
Method Summary
 LdapResult getLdapResult()
          Creates a new instance of AbstractResponseWithResult.
 void setLdapResult(LdapResult ldapResult)
          Sets the result into the response.
 java.lang.String toString()
          Get a String representation of an Response
 
Methods inherited from class org.apache.directory.ldap.client.api.message.AbstractMessage
add, getControl, getControls, getMessageId, hasControl, remove, setMessageId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.ldap.client.api.message.Message
add, getControl, getControls, getMessageId, hasControl, remove, setMessageId
 

Constructor Detail

AbstractResponseWithResult

public AbstractResponseWithResult()
Method Detail

getLdapResult

public LdapResult getLdapResult()
Creates a new instance of AbstractResponseWithResult. public AbstractResponseWithResult() { super(); } /** Returns the response's result

Specified by:
getLdapResult in interface ResponseWithResult
Returns:
a result containing response with defaults and the messageId set in response to this specific request

setLdapResult

public void setLdapResult(LdapResult ldapResult)
Sets the result into the response.

Specified by:
setLdapResult in interface ResponseWithResult
Parameters:
ldapResult - The LdapResult instance associated with this response

toString

public java.lang.String toString()
Get a String representation of an Response

Overrides:
toString in class AbstractMessage
Returns:
An Response String


Copyright © 2009-2011 Apache Software Foundation. All Rights Reserved.