ResourceConverterContext.java
3.82 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* org.apache.sling.api.request.RequestPathInfo
* org.apache.sling.api.resource.Resource
*/
package com.adobe.granite.rest.converter;
import com.adobe.granite.rest.filter.Filter;
import java.util.Map;
import org.apache.sling.api.request.RequestPathInfo;
import org.apache.sling.api.resource.Resource;
public class ResourceConverterContext {
public static final int DEFAULT_LIMIT = 20;
public static final boolean DEFAULT_USE_ABSOLUTE_URIS = true;
public static final boolean DEFAULT_SHOW_ALL_PROPERTIES = false;
private int offset = 0;
private int limit = 20;
private Filter<Resource> filter;
private String scheme;
private String serverName;
private int serverPort;
private String contextPath;
private RequestPathInfo requestPathInfo;
private Map<String, String[]> parameters;
private String query;
private boolean useAbsoluteURI = true;
private boolean showAllProperties = false;
private String[] showProperties;
public int getOffset() {
return this.offset;
}
public ResourceConverterContext setOffset(int offset) {
this.offset = offset;
return this;
}
public int getLimit() {
return this.limit;
}
public ResourceConverterContext setLimit(int limit) {
this.limit = limit;
return this;
}
public Filter<Resource> getFilter() {
return this.filter;
}
public ResourceConverterContext setFilter(Filter<Resource> filter) {
this.filter = filter;
return this;
}
public String getScheme() {
return this.scheme;
}
public ResourceConverterContext setScheme(String scheme) {
this.scheme = scheme;
return this;
}
public String getServerName() {
return this.serverName;
}
public ResourceConverterContext setServerName(String serverName) {
this.serverName = serverName;
return this;
}
public int getServerPort() {
return this.serverPort;
}
public ResourceConverterContext setServerPort(int serverPort) {
this.serverPort = serverPort;
return this;
}
public String getContextPath() {
return this.contextPath;
}
public ResourceConverterContext setContextPath(String contextPath) {
this.contextPath = contextPath;
return this;
}
public RequestPathInfo getRequestPathInfo() {
return this.requestPathInfo;
}
public ResourceConverterContext setRequestPathInfo(RequestPathInfo requestPathInfo) {
this.requestPathInfo = requestPathInfo;
return this;
}
public Map<String, String[]> getParameters() {
return this.parameters;
}
public ResourceConverterContext setParameters(Map<String, String[]> parameters) {
this.parameters = parameters;
return this;
}
public String getQuery() {
return this.query;
}
public ResourceConverterContext setQuery(String query) {
this.query = query;
return this;
}
public boolean isAbsolutURI() {
return this.useAbsoluteURI;
}
public ResourceConverterContext setAbsolutURI(boolean useAbsoluteURI) {
this.useAbsoluteURI = useAbsoluteURI;
return this;
}
public boolean isShowAllProperties() {
return this.showAllProperties;
}
public ResourceConverterContext setShowAllProperties(boolean showAllProperties) {
this.showAllProperties = showAllProperties;
return this;
}
public String[] getShowProperties() {
return this.showProperties == null ? new String[]{} : this.showProperties;
}
public ResourceConverterContext setShowProperties(String[] showProperties) {
this.showProperties = showProperties;
return this;
}
}