public class AdaptedSourceResponse extends Object implements SourceResponse
http://stackoverflow.com/a/11967459,
Serialized Form| Modifier 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
Results of the associated QueryRequest |
boolean |
hasProperties() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProcessingErrorspublic static final SourceResponseImpl EMPTY_SOURCE_RESPONSE
public AdaptedSourceResponse(SourceResponse response)
public AdaptedSourceResponse()
public QueryRequest getRequest()
ResponsegetRequest in interface Response<QueryRequest>Request - the Request that generated this Response.public Set<String> getPropertyNames()
getPropertyNames in interface Operationpublic Serializable getPropertyValue(String name)
OperationgetPropertyValue in interface Operationpublic boolean containsPropertyName(String name)
containsPropertyName in interface Operationpublic boolean hasProperties()
hasProperties in interface Operationpublic Map<String,Serializable> getProperties()
getProperties in interface Operationpublic long getHits()
SourceResponseQuery for the associated Source, -1 if unknown. This is typically more than the number of Results returned from SourceResponse.getResults().getHits in interface SourceResponseQuery, -1 if unknown.public List<MetacardElement> getMetacard()
public List<Result> getResults()
SourceResponseResults of the associated QueryRequestgetResults in interface SourceResponsepublic Set<? extends SourceProcessingDetails> getProcessingDetails()
SourceResponseQueryRequest associated with this
SourceResponse. Must not be null.getProcessingDetails in interface SourceResponseThis work is licensed under a Creative Commons Attribution 4.0 International License.