|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.urlchecker.commands.Result
public class Result
The Result Class. It encapsulates all information about a target URL, the target URL, the returned result code, whether or not it is a valid result and an arbitrary object to store further information should they be needed while processing the URL. Should the target URL is unreachable due to an error, the userData object will contain the throwable object occurring due to the exception.
$Id: Result.java 181 2010-12-12 23:39:00Z georgosn $
Constructor Summary | |
---|---|
Result()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
getResult()
Gets the result. |
String |
getTarget()
Gets the target. |
URI |
getURI()
Gets the URI. |
Object |
getUserData()
Gets the user data. |
int |
hashCode()
|
boolean |
isValid()
Checks if is valid. |
void |
setResult(int aResult)
Sets the result. |
void |
setTarget(String aTarget)
Sets the target. |
void |
setUserData(Object someUserData)
Sets the user data. |
void |
setValid(boolean value)
Sets the valid. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Result()
Method Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public int getResult()
public String getTarget()
public URI getURI()
public Object getUserData()
public int hashCode()
hashCode
in class Object
public boolean isValid()
public void setResult(int aResult)
aResult
- the result to setpublic void setTarget(String aTarget)
aTarget
- the target to setpublic void setUserData(Object someUserData)
someUserData
- the userData to setpublic void setValid(boolean value)
value
- the valid to setpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |