net.sf.urlchecker.commands
Class Result

Package class diagram package Result
java.lang.Object
  extended by net.sf.urlchecker.commands.Result

public class Result
extends Object

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 $

Version:
$LastChangedRevision: 181 $
Author:
$LastChangedBy: 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

Result

public Result()
Method Detail

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

getResult

public int getResult()
Gets the result.

Returns:
the result

getTarget

public String getTarget()
Gets the target.

Returns:
the target

getURI

public URI getURI()
Gets the URI.

Returns:
the URI

getUserData

public Object getUserData()
Gets the user data.

Returns:
the user data

hashCode

public int hashCode()

Overrides:
hashCode in class Object

isValid

public boolean isValid()
Checks if is valid.

Returns:
true, if is valid

setResult

public void setResult(int aResult)
Sets the result.

Parameters:
aResult - the result to set

setTarget

public void setTarget(String aTarget)
Sets the target.

Parameters:
aTarget - the target to set

setUserData

public void setUserData(Object someUserData)
Sets the user data.

Parameters:
someUserData - the userData to set

setValid

public void setValid(boolean value)
Sets the valid.

Parameters:
value - the valid to set

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2010 Nikolaos Georgosopoulos. All Rights Reserved.