public class QueryOperations extends DescribableImpl
CatalogFrameworkImpl
.
This class contains two delegated query methods and methods to support them. No operations/support methods should be added to this class except in support of CFI query operations.
Modifier and Type | Field and Description |
---|---|
static Integer |
MAX_PAGE_SIZE |
Constructor and Description |
---|
QueryOperations(FrameworkProperties frameworkProperties,
SourceOperations sourceOperations,
OperationsSecuritySupport opsSecuritySupport,
OperationsMetacardSupport opsMetacardSupport) |
Modifier and Type | Method and Description |
---|---|
protected org.opengis.filter.Filter |
getNonVersionTagsFilter(Operation requestOperation) |
QueryResponse |
query(QueryRequest fedQueryRequest,
boolean fanoutEnabled) |
QueryResponse |
query(QueryRequest queryRequest,
FederationStrategy strategy,
boolean fanoutEnabled) |
QueryResponse |
replaceSourceId(QueryResponse queryResponse)
Replaces the site name(s) of
FederatedSource s in the QueryResponse with the
fanout's site name to keep info about the FederatedSource s hidden from the external
client. |
void |
setFanoutProxyTagBlacklist(List<String> fanoutProxyTagBlacklist) |
void |
setFilterAdapter(FilterAdapter filterAdapter) |
void |
setQueryTimeoutMillis(long queryTimeoutMillis) |
getDescription, getId, getOrganization, getTitle, getVersion, setDescription, setId, setOrganization, setShortname, setTitle, setVersion
public static final Integer MAX_PAGE_SIZE
public QueryOperations(FrameworkProperties frameworkProperties, SourceOperations sourceOperations, OperationsSecuritySupport opsSecuritySupport, OperationsMetacardSupport opsMetacardSupport)
public void setFanoutProxyTagBlacklist(List<String> fanoutProxyTagBlacklist)
public void setFilterAdapter(FilterAdapter filterAdapter)
public void setQueryTimeoutMillis(long queryTimeoutMillis)
public QueryResponse query(QueryRequest fedQueryRequest, boolean fanoutEnabled) throws UnsupportedQueryException, SourceUnavailableException, FederationException
public QueryResponse query(QueryRequest queryRequest, FederationStrategy strategy, boolean fanoutEnabled) throws SourceUnavailableException, UnsupportedQueryException, FederationException
public QueryResponse replaceSourceId(QueryResponse queryResponse)
FederatedSource
s in the QueryResponse
with the
fanout's site name to keep info about the FederatedSource
s hidden from the external
client.queryResponse
- the original QueryResponse
from the query requestQueryResponse
with all site names replaced with fanout's site nameThis work is licensed under a Creative Commons Attribution 4.0 International License.