String formNotImplemented() { return formError("501 Method not implemented", "Service not implemented"); } /** * Server is overloaded, client should try again latter. * * @return The header in a string; */ public static String formOverloaded() { return formError("502 Server overloaded", "Try again latter"); } /** * Indicates the request took to long. * * @return The header in a string; */ public static String formTimeout() { return formError("503 Gateway timeout", "The connection timed out"); } /** * Indicates the client's proxies could not locate a server. * * @return The header in a string; */ public static String formServerNotFound() { return formError("503 Gateway timeout", "The requested server was not found"); } /** * Indicates the client is not allowed to access the object. * * @return The header in a string; */ public static String formNotAllowed() { return formError("403 Access Denied", "Access is not allowed"); }
String formCreated() { return formError("201 Created", "Object was created"); } /** * Indicates the document was accepted. * * @return The header in a string; */ public static String formAccepted() { return formError("202 Accepted", "Object checked in"); } /** * Indicates only a partial responce was sent. * * @return The header in a string; */ public static String formPartial() { return formError("203 Partial", "Only partail document available"); } /** * Indicates a requested URL has moved to a new address or name. * * @return The header in a string; */ public static String formMoved() { // 300 codes tell client to do actions return formError("301 Moved", "File has moved"); } /** * Never seen this used. * * @return The header in a string; */ public static String formFound() { return formError("302 Found", "Object was found"); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/HttpReplyHdr.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/HttpReplyHdr.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String formNotImplemented() {
1
String formCreated() {
2
		return formError("501 Method not implemented", "Service not implemented");
2
		return formError("201 
3
	}
4
	/**
5
	 * Server is overloaded, client should try again lat
3
Created", "Object was created");
4
	}
5
	/**
6
ter.
6
	 * Indicates the document was accepted.
7
	 * 
7
	 * 
8
	 * @return The header in a string;
8
	 * @return The header in a string;
9
	 */
9
	 */
10
	public static String formOverloaded() {
10
	public static String formAccepted() {
11
		return formError("502 Server overloaded", "Try again latter");
11
		return formError("202 
12
	}
13
	/**
14
	 * Indicates the request took to long
12
Accepted", "Object checked in");
13
	}
14
	/**
15
.
15
	 * Indicates only a partial responce was sent.
16
	 * 
16
	 * 
17
	 * @return The header in a string;
17
	 * @return The header in a string;
18
	 */
18
	 */
19
	public static String formTimeout() {
19
	public static String formPartial() {
20
		return formError("503 Gateway timeout", "The connection timed out");
20
		return formError("203 
21
	}
22
	/**
23
	 * Indicates the client's proxies could not locate a server
21
Partial", "Only partail document available");
22
	}
23
	/**
24
.
24
	 * Indicates a requested URL has moved to a new address or name.
25
	 * 
25
	 * 
26
	 * @return The header in a string;
26
	 * @return The header in a string;
27
	 */
27
	 */
28
	public static String formServerNotFound() {
28
	public static String form
29
		return formError("503 Gateway timeout", "The requested server was not foun
29
Moved() {
30
		// 300 codes tell client to do actions
30
d");
31
		return formError("301 Moved", "File has moved");
31
	}
32
	}
32
	/**
33
	/**
33
	 * Indicates the client is not allowed to access the object.
34
	 * Never seen this used.
34
	 * 
35
	 * 
35
	 * @return The header in a string;
36
	 * @return The header in a string;
36
	 */
37
	 */
37
	public static String formNotAllowed() {
38
	public static String formFound() {
38
		return formError("403 Access Denied", "Access is not allowed");
39
		return formError("302 Found", "Object was found");
39
	}
40
	}
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