public class SearchResponse
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SearchResponse.SearchException
The exception is called when the method to perform the search action is called but there
is no way to handle request due to wrong or illegal SearchQuery format or the connection fails.
|
static interface |
SearchResponse.Status
Response status, may be on of those: VALID, INVALID.
|
Modifier and Type | Field and Description |
---|---|
static int |
INVALID
Invalid response status code.
|
static int |
VALID
Valid response status code.
|
Modifier and Type | Method and Description |
---|---|
static SearchResponseBuilder |
builder()
Instantiates the SearchResponseBuilder object.
|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
SearchResponse.SearchException |
getFailReason()
Exception describing why the request failed.
|
SearchQuery |
getSearchQuery()
Query used to obtain current SearchResponse.
|
java.util.List<SearchResult> |
getSearchResults()
List of available search result items.
|
int |
getStatus()
Search response status, may be one of those: VALID, INVALID.
|
int |
hashCode() |
public static final int VALID
public static final int INVALID
public static SearchResponseBuilder builder()
public SearchQuery getSearchQuery()
public java.util.List<SearchResult> getSearchResults()
public SearchResponse.SearchException getFailReason()
public int getStatus()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object