public class AdaptedSourceResponse extends Object implements SourceResponse
http://stackoverflow.com/a/11967459
,
Serialized FormModifier and Type | Field and Description |
---|---|
static SourceResponseImpl |
EMPTY_SOURCE_RESPONSE |
Constructor and Description |
---|
AdaptedSourceResponse() |
AdaptedSourceResponse(SourceResponse response) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsPropertyName(String name) |
long |
getHits()
|
List<MetacardElement> |
getMetacard() |
Set<? extends SourceProcessingDetails> |
getProcessingDetails()
Get any specific details about the execution of the
QueryRequest associated with this
SourceResponse . |
Map<String,Serializable> |
getProperties() |
Set<String> |
getPropertyNames() |
Serializable |
getPropertyValue(String name)
used for facets, authentication, transaction support, etc.
|
QueryRequest |
getRequest()
Get the request that generated this response
|
List<Result> |
getResults()
Get the
Result s of the associated QueryRequest |
boolean |
hasProperties() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProcessingErrors
public static final SourceResponseImpl EMPTY_SOURCE_RESPONSE
public AdaptedSourceResponse(SourceResponse response)
public AdaptedSourceResponse()
public QueryRequest getRequest()
Response
getRequest
in interface Response<QueryRequest>
Request
- the Request
that generated this Response
.public Set<String> getPropertyNames()
getPropertyNames
in interface Operation
public Serializable getPropertyValue(String name)
Operation
getPropertyValue
in interface Operation
public boolean containsPropertyName(String name)
containsPropertyName
in interface Operation
public boolean hasProperties()
hasProperties
in interface Operation
public Map<String,Serializable> getProperties()
getProperties
in interface Operation
public long getHits()
SourceResponse
Query
for the associated Source
, -1 if unknown. This is typically more than the number of Result
s returned from SourceResponse.getResults()
.getHits
in interface SourceResponse
Query
, -1 if unknown.public List<MetacardElement> getMetacard()
public List<Result> getResults()
SourceResponse
Result
s of the associated QueryRequest
getResults
in interface SourceResponse
public Set<? extends SourceProcessingDetails> getProcessingDetails()
SourceResponse
QueryRequest
associated with this
SourceResponse
. Must not be null.getProcessingDetails
in interface SourceResponse
This work is licensed under a Creative Commons Attribution 4.0 International License.