1 | void setMemoryCache(boolean cache) {↵ | | 1 | void setReadResponse(boolean read) {↵
|
2 | setProperty(MEMORY_CACHE, String.valueOf(cache));↵ | | 2 | setProperty(READ_RESPONSE, String.valueOf(read));↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Get the memory cache.↵ | | 5 | * Return whether or not to read the response.↵
|
6 | * ↵ | | 6 | * ↵
|
7 | * @return boolean cache↵ | | 7 | * @return boolean↵
|
8 | */↵ | | 8 | */↵
|
9 | public boolean getMemoryCache() {↵ | | 9 | public boolean getReadResponse() {↵
|
10 | return getPropertyAsBoolean(MEMORY_CACHE);↵ | | 10 | return this.getPropertyAsBoolean(READ_RESPONSE);↵
|
11 | }↵ | | 11 | }↵
|
|
12 | /**↵ | | 12 | /**↵
|
13 | * Set whether the sampler should read the response or not.↵ | | 13 | * Set whether or not to use a proxy↵
|
14 | * ↵ | | 14 | * ↵
|
15 | * @param read↵ | | 15 | * @param proxy↵
|
16 | */↵ | | 16 | */↵
|
17 | public void setReadResponse(boolean read) {↵ | | 17 | public void setUseProxy(boolean proxy) {↵
|
18 | setProperty(READ_RESPONSE, String.valueOf(read));↵ | | 18 | setProperty(USE_PROXY, String.valueOf(proxy));↵
|
19 | }↵ | | 19 | }↵
|
|
20 | /**↵ | | 20 | /**↵
|
21 | * Return whether or not to read the response.↵ | | 21 | * Return whether or not to use proxy↵
|
22 | * ↵ | | 22 | * ↵
|
23 | * @return boolean↵ | | 23 | * @return true if should use proxy↵
|
24 | */↵ | | 24 | */↵
|
25 | public boolean getReadResponse() {↵ | | 25 | public boolean getUseProxy() {↵
|
26 | return this.getPropertyAsBoolean(READ_RESPONSE);↵ | | 26 | return this.getPropertyAsBoolean(USE_PROXY);↵
|
27 | } | | 27 | }
|