org.ldaptive.control.util
Class SyncReplItem

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

public class SyncReplItem
extends Object

Contains data returned when using the sync repl search control.

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

Nested Class Summary
static class SyncReplItem.Entry
          Wrapper class that provides easy access to the SyncStateControl contained in a search entry.
static class SyncReplItem.Response
          Wrapper class that provides easy access to the SyncDoneControl contained in a response.
 
Constructor Summary
SyncReplItem(AsyncRequest request)
          Creates a new sync repl item.
SyncReplItem(Exception exception)
          Creates a new sync repl item.
SyncReplItem(SyncInfoMessage message)
          Creates a new sync repl item.
SyncReplItem(SyncReplItem.Entry entry)
          Creates a new sync repl item.
SyncReplItem(SyncReplItem.Response response)
          Creates a new sync repl item.
 
Method Summary
 AsyncRequest getAsyncRequest()
          Returns the async request contained in this item or null if this item does not contain an async request.
 SyncReplItem.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.
 SyncInfoMessage getMessage()
          Returns the intermediate message contained in this item or null if this item does not contain a message.
 SyncReplItem.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 isMessage()
          Returns whether this item represents an intermediate message.
 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

SyncReplItem

public SyncReplItem(AsyncRequest request)
Creates a new sync repl item.

Parameters:
request - that represents this item

SyncReplItem

public SyncReplItem(SyncReplItem.Entry entry)
Creates a new sync repl item.

Parameters:
entry - that represents this item

SyncReplItem

public SyncReplItem(SyncInfoMessage message)
Creates a new sync repl item.

Parameters:
message - that represents this item

SyncReplItem

public SyncReplItem(SyncReplItem.Response response)
Creates a new sync repl item.

Parameters:
response - that represents this item

SyncReplItem

public SyncReplItem(Exception exception)
Creates a new sync repl 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 SyncReplItem.Entry getEntry()
Returns the entry contained in this item or null if this item does not contain an entry.

Returns:
sync repl entry

isMessage

public boolean isMessage()
Returns whether this item represents an intermediate message.

Returns:
whether this item represents an intermediate message

getMessage

public SyncInfoMessage getMessage()
Returns the intermediate message contained in this item or null if this item does not contain a message.

Returns:
sync info message

isResponse

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

Returns:
whether this item represents a response

getResponse

public SyncReplItem.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-2015 Virginia Tech. All Rights Reserved.