public static class NotificationClient.NotificationItem extends Object
Modifier and Type | Field and Description |
---|---|
private AsyncRequest |
asyncRequest
Async request from the search operation.
|
private SearchEntry |
searchEntry
Entry contained in this notification item.
|
private Exception |
searchException
Exception thrown by the search operation.
|
private Response |
searchResponse
Response contained in this notification item.
|
Constructor and Description |
---|
NotificationItem(AsyncRequest request)
Creates a new notification item.
|
NotificationItem(Exception exception)
Creates a new notification item.
|
NotificationItem(Response response)
Creates a new notification item.
|
NotificationItem(SearchEntry entry)
Creates a new notification 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.
|
SearchEntry |
getEntry()
Returns the search entry contained in this item or null if this item does not contain a search 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 SearchEntry searchEntry
private final Response searchResponse
private final Exception searchException
public NotificationItem(AsyncRequest request)
request
- that represents this itempublic NotificationItem(SearchEntry entry)
entry
- that represents this itempublic NotificationItem(Response response)
response
- that represents this itempublic NotificationItem(Exception exception)
exception
- that represents this itempublic boolean isAsyncRequest()
public AsyncRequest getAsyncRequest()
public boolean isEntry()
public SearchEntry getEntry()
public boolean isResponse()
public Response getResponse()
public boolean isException()
public Exception getException()
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.