-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
SearchRequest.java
75 lines (56 loc) · 1.67 KB
/
SearchRequest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* (c) 2017 Open Source Geospatial Foundation - all rights reserved
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.opensearch.eo;
import java.util.Map;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.geotools.data.Parameter;
import org.geotools.data.Query;
/**
* A OpenSearch EO query, for either collections (no parent id) or products (with parent id)
*
* @author Andrea Aime - GeoSolutions
*/
public class SearchRequest {
String parentId;
Query query;
String httpAccept;
private Map<Parameter, String> searchParameters;
transient String baseUrl;
public String getBaseUrl() {
return baseUrl;
}
public void setBaseUrl(String baseUrl) {
this.baseUrl = baseUrl;
}
public String getParentId() {
return parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public Query getQuery() {
return query;
}
public void setQuery(Query query) {
this.query = query;
}
public String getHttpAccept() {
return httpAccept;
}
public void setHttpAccept(String httpAccept) {
this.httpAccept = httpAccept;
}
public void setSearchParameters(Map<Parameter, String> searchParameters) {
this.searchParameters = searchParameters;
}
public Map<Parameter, String> getSearchParameters() {
return searchParameters;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
}
}