String formPaymentNeeded() { return formError("402 Payment required", "Payment is required"); } /** * Client if forbidden to get the request service. * * @return The header in a string; */ public static String formForbidden() { return formError("403 Forbidden", "You need permission for this service"); } /** * The requested object was not found. * * @return The header in a string; */ public static String formNotFound() { return formError("404 Not_found", "Requested object was not found"); } /** * The server had a problem and could not fulfill the request. * * @return The header in a string; */ public static String formInternalError() { return formError("500 Internal server error", "Server broke"); } /** * Server does not do the requested feature. * * @return The header in a string; */ public static 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"); } /** * The requested method is not implemented by the server. * * @return The header in a string; */ public static String formMethod() { return formError("303 Method unseported", "Method unseported"); } /** * Indicates remote copy of the requested object is current. * * @return The header in a string; */ public static String formNotModified() { return formError("304 Not modified", "Use local copy"); } /** * Client not otherized for the request. * * @return The header in a string; */ public static String formUnautorized() { return formError("401 Unathorized", "Unathorized use of this service"); } /** * Payment is required for service. * * @return The header in a string; */ public static String formPaymentNeeded() { return formError("402 Payment required", "Payment is required");
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 formPaymentNeeded() {
1
String formCreated() {
2
		return formError("402 Payment required", "Payment is required");
2
		return formError("201 Created", "Object was created");
3
	}
3
	}
4
	/**
4
	/**
5
	 * Client if forbidden to get the request service.
5
	 * Indicates the document was accepted.
6
	 * 
6
	 * 
7
	 * @return The header in a string;
7
	 * @return The header in a string;
8
	 */
8
	 */
9
	public static String formForbidden() {
9
	public static String formAccepted() {
10
		return formError("403 Forbidden", "You need permission for this service");
10
		return formError("
11
	}
12
	/**
13
	 * The requested object was not found
11
202 Accepted", "Object checked in");
12
	}
13
	/**
14
.
14
	 * Indicates only a partial responce was sent.
15
	 * 
15
	 * 
16
	 * @return The header in a string;
16
	 * @return The header in a string;
17
	 */
17
	 */
18
	public static String formNotFound() {
18
	public static String formPartial() {
19
		return formError("404 Not_found", "Requested object was not found");
19
		return formError("203 Partial", "Only partail document available");
20
	}
20
	}
21
	/**
21
	/**
22
	 * The server had a problem and could not fulfill the request.
22
	 * Indicates a requested URL has moved to a new address or name.
23
	 * 
23
	 * 
24
	 * @return The header in a string;
24
	 * @return The header in a string;
25
	 */
25
	 */
26
	public static String formInternalError() {
26
	public static String form
27
		return formError("500 Internal server error", "Server broke
27
Moved() {
28
		// 300 codes tell client to do actions
28
");
29
		return formError("301 Moved", "File has moved");
29
	}
30
	}
30
	/**
31
	/**
31
	 * Server does not do the requested feature.
32
	 * Never seen this used.
32
	 * 
33
	 * 
33
	 * @return The header in a string;
34
	 * @return The header in a string;
34
	 */
35
	 */
35
	public static String formNotImplemented() {
36
	public static String formFound() {
36
		return formError("501 Method not implemented", "Service not implemented");
37
		return formError("
37
	}
38
	/**
39
	 * Server is overloaded, client should try again latt
38
302 Found", "Object was found");
39
	}
40
	/**
40
er.
41
	 * The requested method is not implemented by the server.
41
	 * 
42
	 * 
42
	 * @return The header in a string;
43
	 * @return The header in a string;
43
	 */
44
	 */
44
	public static String formOverloaded() {
45
	public static String formMethod() {
45
		return formError("502 Server overloaded", "Try again latter");
46
		return formError("303 Method unseported", "Method unseported");
46
	}
47
	}
47
	/**
48
	/**
48
	 * Indicates the request took to long.
49
	 * Indicates remote copy of the requested object is current.
49
	 * 
50
	 * 
50
	 * @return The header in a string;
51
	 * @return The header in a string;
51
	 */
52
	 */
52
	public static String formTimeout() {
53
	public static String formNotModified() {
53
		return formError("503 Gateway timeout", "The connection timed out");
54
		return formError("304 Not modified", "
54
	}
55
	/**
56
	 * Indicates the client's proxies could not locate a server
55
Use local copy");
56
	}
57
	/**
57
.
58
	 * Client not otherized for the request.
58
	 * 
59
	 * 
59
	 * @return The header in a string;
60
	 * @return The header in a string;
60
	 */
61
	 */
61
	public static String formServerNotFound() {
62
	public static String formUnautorized() {
62
		return formError("503 Gateway timeout", "The requested server was not found");
63
		return formError("
63
	}
64
	/**
65
	 * Indicates the client is not allowed to access the object
64
401 Unathorized", "Unathorized use of this service");
65
	}
66
	/**
66
.
67
	 * Payment is required for service.
67
	 * 
68
	 * 
68
	 * @return The header in a string;
69
	 * @return The header in a string;
69
	 */
70
	 */
70
	public static String formNotAllowed() {
71
	public static String formPaymentNeeded() {
71
		return formError("403 Access Denied", "Access is not allowed");
72
		return formError("402 Payment required", "Payment is required");
72
	
73
	
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