public class PersistentSearchItem extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PersistentSearchItem.Entry
Wrapper class that provides easy access to the
EntryChangeNotificationControl contained in a search entry. |
Modifier and Type | Field and Description |
---|---|
private AsyncRequest |
asyncRequest
Async request from the search operation.
|
private PersistentSearchItem.Entry |
persistentSearchEntry
Entry contained in this persistent search item.
|
private Exception |
persistentSearchException
Exception thrown by the search operation.
|
private Response |
persistentSearchResponse
Response contained in this persistent search item.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
private final AsyncRequest asyncRequest
private final PersistentSearchItem.Entry persistentSearchEntry
private final Response persistentSearchResponse
private final Exception persistentSearchException
public PersistentSearchItem(AsyncRequest request)
request
- that represents this itempublic PersistentSearchItem(PersistentSearchItem.Entry entry)
entry
- that represents this itempublic PersistentSearchItem(Response response)
response
- that represents this itempublic PersistentSearchItem(Exception exception)
exception
- that represents this itempublic boolean isAsyncRequest()
public AsyncRequest getAsyncRequest()
public boolean isEntry()
public PersistentSearchItem.Entry getEntry()
public boolean isResponse()
public Response getResponse()
public boolean isException()
public Exception getException()
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.