org.ldaptive.control.util
Class PersistentSearchItem

java.lang.Object
  extended by org.ldaptive.control.util.PersistentSearchItem

public class PersistentSearchItem
extends Object

Contains data returned when using the persistent search request control.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Nested Class Summary
static class PersistentSearchItem.Entry
          Wrapper class that provides easy access to the EntryChangeNotificationControl contained in a search entry.
 
Constructor Summary
PersistentSearchItem(AsyncRequest request)
          Creates a new persistent search item.
PersistentSearchItem(Exception exception)
          Creates a new persistent search item.
PersistentSearchItem(PersistentSearchItem.Entry entry)
          Creates a new persistent search item.
PersistentSearchItem(Response response)
          Creates a new persistent search item.
 
Method Summary
 AsyncRequest getAsyncRequest()
          Returns the async request contained in this item or null if this item does not contain an async request.
 PersistentSearchItem.Entry getEntry()
          Returns the entry contained in this item or null if this item does not contain an entry.
 Exception getException()
          Returns the exception contained in this item or null if this item does not contain an exception.
 Response getResponse()
          Returns the response contained in this item or null if this item does not contain a response.
 boolean isAsyncRequest()
          Returns whether this item represents an async request.
 boolean isEntry()
          Returns whether this item represents a search entry.
 boolean isException()
          Returns whether this item represents an exception.
 boolean isResponse()
          Returns whether this item represents a response.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistentSearchItem

public PersistentSearchItem(AsyncRequest request)
Creates a new persistent search item.

Parameters:
request - that represents this item

PersistentSearchItem

public PersistentSearchItem(PersistentSearchItem.Entry entry)
Creates a new persistent search item.

Parameters:
entry - that represents this item

PersistentSearchItem

public PersistentSearchItem(Response response)
Creates a new persistent search item.

Parameters:
response - that represents this item

PersistentSearchItem

public PersistentSearchItem(Exception exception)
Creates a new persistent search item.

Parameters:
exception - that represents this item
Method Detail

isAsyncRequest

public boolean isAsyncRequest()
Returns whether this item represents an async request.

Returns:
whether this item represents an async request

getAsyncRequest

public AsyncRequest getAsyncRequest()
Returns the async request contained in this item or null if this item does not contain an async request.

Returns:
async request

isEntry

public boolean isEntry()
Returns whether this item represents a search entry.

Returns:
whether this item represents a search entry

getEntry

public PersistentSearchItem.Entry getEntry()
Returns the entry contained in this item or null if this item does not contain an entry.

Returns:
search entry

isResponse

public boolean isResponse()
Returns whether this item represents a response.

Returns:
whether this item represents a response

getResponse

public Response getResponse()
Returns the response contained in this item or null if this item does not contain a response.

Returns:
response

isException

public boolean isException()
Returns whether this item represents an exception.

Returns:
whether this item represents an exception

getException

public Exception getException()
Returns the exception contained in this item or null if this item does not contain an exception.

Returns:
exception

toString

public String toString()

Overrides:
toString in class Object


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