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"); }
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"); }
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 formCreated() {
1
String formOverloaded() {
2
		return formError("201 Created", "Object was created");
2
		return formError("502 Server overloaded", "Try again latter");
3
	}
3
	}
4
	/**
4
	/**
5
	 * Indicates the document was accepted.
5
	 * Indicates the request took to long.
6
	 * 
6
	 * 
7
	 * @return The header in a string;
7
	 * @return The header in a string;
8
	 */
8
	 */
9
	public static String formAccepted() {
9
	public static String formTimeout() {
10
		return formError("202 Accepted", "Object checked in");
10
		return formError("503 Gateway timeout", "The connection timed out");
11
	}
11
	}
12
	/**
12
	/**
13
	 * Indicates only a partial responce was sent.
13
	 * Indicates the client's proxies could not locate a server.
14
	 * 
14
	 * 
15
	 * @return The header in a string;
15
	 * @return The header in a string;
16
	 */
16
	 */
17
	public static String formPartial() {
17
	public static String formServerNotFound() {
18
		return formError("203 Partial", "Only partail document available");
18
		return formError("503 Gateway timeout", "The requested server was not found");
19
	}
19
	}
20
	/**
20
	/**
21
	 * Indicates a requested URL has moved to a new address or name.
21
	 * Indicates the client is not allowed to access the object.
22
	 * 
22
	 * 
23
	 * @return The header in a string;
23
	 * @return The header in a string;
24
	 */
24
	 */
25
	public static String formMoved() {
25
	public static String form
26
		// 300 codes tell client to do actions
26
NotAllowed() {
27
		return formError("301 Moved", "File has moved");
27
		return formError("403 Access Denied", "Access is not allowed");
28
	}
28
	}
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