void setMemoryCache(boolean cache) { setProperty(MEMORY_CACHE, String.valueOf(cache)); } /** * Get the memory cache. * * @return boolean cache */ public boolean getMemoryCache() { return getPropertyAsBoolean(MEMORY_CACHE); } /** * Set whether the sampler should read the response or not. * * @param read */ public void setReadResponse(boolean read) { setProperty(READ_RESPONSE, String.valueOf(read)); } /** * Return whether or not to read the response. * * @return boolean */ public boolean getReadResponse() { return this.getPropertyAsBoolean(READ_RESPONSE);
void setReadResponse(boolean read) { setProperty(READ_RESPONSE, String.valueOf(read)); } /** * Return whether or not to read the response. * * @return boolean */ public boolean getReadResponse() { return this.getPropertyAsBoolean(READ_RESPONSE); } /** * Set whether or not to use a proxy * * @param proxy */ public void setUseProxy(boolean proxy) { setProperty(USE_PROXY, String.valueOf(proxy)); } /** * Return whether or not to use proxy * * @return true if should use proxy */ public boolean getUseProxy() { return this.getPropertyAsBoolean(USE_PROXY);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/WebServiceSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/WebServiceSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
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
	
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0