1 package org.apache.maven.linkcheck.validation;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 /***
21 * <b>This is an immutable class.</b><br/>
22 * <p>
23 * This class is used to return status responses from the
24 * validation handlers. A persistent result means that it
25 * can be stored in the persistent cache and used across runs.
26 * </p>
27 * @author <a href="mailto:bwalding@apache.org">Ben Walding</a>
28 * @version $Id: LinkValidationResult.java 170200 2005-05-15 06:24:19Z brett $
29 */
30 public class LinkValidationResult {
31 public static final int NOTMINE = 0;
32 public static final int INVALID = 1;
33 public static final int VALID = 2;
34 public static final int UNKNOWN = 3;
35
36 private final boolean persistent;
37 private final int status;
38
39 public LinkValidationResult(int status, boolean persistent) {
40 this.status = status;
41 this.persistent = persistent;
42 }
43
44 public boolean isPersistent() {
45 return persistent;
46 }
47
48
49 /***
50 * Returns the status.
51 * @return int
52 */
53 public int getStatus() {
54 return status;
55 }
56
57
58
59 }