org.ldaptive
Class SearchEntry

java.lang.Object
  extended by org.ldaptive.AbstractLdapBean
      extended by org.ldaptive.LdapEntry
          extended by org.ldaptive.SearchEntry
All Implemented Interfaces:
Serializable, Message<ResponseControl>, ResponseMessage

public class SearchEntry
extends LdapEntry
implements ResponseMessage

Simple bean representing a search entry.

Version:
$Revision: 3190 $ $Date: 2016-11-02 12:11:14 -0400 (Wed, 02 Nov 2016) $
Author:
Middleware Services
See Also:
Serialized Form

Constructor Summary
SearchEntry(int id, ResponseControl[] c)
          Creates a new search entry.
SearchEntry(int id, ResponseControl[] c, SortBehavior sb)
          Creates a new search entry.
 
Method Summary
 boolean equals(Object o)
          
 ResponseControl getControl(String oid)
          Returns the first response control with the supplied OID for this response message.
 ResponseControl[] getControls()
          Returns the controls for this message.
 int getMessageId()
          Returns the message ID for this response message.
 int hashCode()
           
 String toString()
          
 
Methods inherited from class org.ldaptive.LdapEntry
addAttribute, addAttributes, clear, computeModifications, getAttribute, getAttribute, getAttributeNames, getAttributes, getDn, removeAttribute, removeAttribute, removeAttributes, setDn, size
 
Methods inherited from class org.ldaptive.AbstractLdapBean
getSortBehavior
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchEntry

public SearchEntry(int id,
                   ResponseControl[] c)
Creates a new search entry.

Parameters:
id - message id
c - response controls

SearchEntry

public SearchEntry(int id,
                   ResponseControl[] c,
                   SortBehavior sb)
Creates a new search entry.

Parameters:
id - message id
c - response controls
sb - sort behavior
Method Detail

getControls

public ResponseControl[] getControls()
Returns the controls for this message.

Specified by:
getControls in interface Message<ResponseControl>
Returns:
controls

getControl

public ResponseControl getControl(String oid)
Returns the first response control with the supplied OID for this response message.

Specified by:
getControl in interface ResponseMessage
Parameters:
oid - of the response control to return
Returns:
response control or null if control could not be found

getMessageId

public int getMessageId()
Returns the message ID for this response message.

Specified by:
getMessageId in interface ResponseMessage
Returns:
message id

equals

public boolean equals(Object o)

Overrides:
equals in class LdapEntry

hashCode

public int hashCode()
Overrides:
hashCode in class LdapEntry

toString

public String toString()

Overrides:
toString in class LdapEntry


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.