org.apache.directory.api.ldap.model.message
Class CompareResponseImpl

java.lang.Object
  extended by org.apache.directory.api.ldap.model.message.AbstractMessage
      extended by org.apache.directory.api.ldap.model.message.AbstractResponse
          extended by org.apache.directory.api.ldap.model.message.AbstractResultResponse
              extended by org.apache.directory.api.ldap.model.message.CompareResponseImpl
All Implemented Interfaces:
CompareResponse, Message, Response, ResultResponse
Direct Known Subclasses:
CompareNoDResponse

public class CompareResponseImpl
extends AbstractResultResponse
implements CompareResponse

CompareResponse implementation.

Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
ldapResult
 
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controls
 
Fields inherited from interface org.apache.directory.api.ldap.model.message.CompareResponse
TYPE
 
Constructor Summary
CompareResponseImpl()
          Creates a CompareResponse as a reply to an CompareRequest.
CompareResponseImpl(int id)
          Creates a CompareResponse as a reply to an CompareRequest.
 
Method Summary
 boolean isTrue()
          
 String toString()
          Get a String representation of an CompareResponse
 
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
equals, getLdapResult, hashCode
 
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
 
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

CompareResponseImpl

public CompareResponseImpl()
Creates a CompareResponse as a reply to an CompareRequest.


CompareResponseImpl

public CompareResponseImpl(int id)
Creates a CompareResponse as a reply to an CompareRequest.

Parameters:
id - the session unique message id
Method Detail

isTrue

public boolean isTrue()

Specified by:
isTrue in interface CompareResponse
Returns:
True if the compared response is a success

toString

public String toString()
Get a String representation of an CompareResponse

Overrides:
toString in class AbstractResultResponse
Returns:
An CompareResponse String


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