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