org.apache.maven.doxia.linkcheck.validation
Class HTTPLinkValidationResult

java.lang.Object
  extended by org.apache.maven.doxia.linkcheck.validation.LinkValidationResult
      extended by org.apache.maven.doxia.linkcheck.validation.HTTPLinkValidationResult
All Implemented Interfaces:
Serializable

public class HTTPLinkValidationResult
extends LinkValidationResult

This class is used to return HTTP status responses from the validation handlers.

Version:
$Id: HTTPLinkValidationResult.java 638289 2008-03-18 09:44:10Z bentmann $
Author:
Vincent Siveton
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.maven.doxia.linkcheck.validation.LinkValidationResult
NOTMINE
 
Constructor Summary
HTTPLinkValidationResult(int stat, boolean persistent, int httpStatusCode, String message)
          Constructor: initializes status, persistent, httpStatusCode and errorMessage.
HTTPLinkValidationResult(int stat, boolean persistent, String message)
          Constructor: initializes status, persistent and errorMessage.
 
Method Summary
 String getErrorMessage()
          Returns the errorMessage.
 int getHttpStatusCode()
          Returns the httpStatusCode.
 String toString()
          
 
Methods inherited from class org.apache.maven.doxia.linkcheck.validation.LinkValidationResult
getStatus, isPersistent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTTPLinkValidationResult

public HTTPLinkValidationResult(int stat,
                                boolean persistent,
                                String message)
Constructor: initializes status, persistent and errorMessage. Using this constructor, the HTTP status code is by default -1.

Parameters:
stat - The status.
persistent - The persistent.
message - The errorMessage.

HTTPLinkValidationResult

public HTTPLinkValidationResult(int stat,
                                boolean persistent,
                                int httpStatusCode,
                                String message)
Constructor: initializes status, persistent, httpStatusCode and errorMessage.

Parameters:
stat - The status.
persistent - The persistent.
httpStatusCode - The httpStatusCode returned.
message - The errorMessage.
Method Detail

getErrorMessage

public String getErrorMessage()
Returns the errorMessage.

Overrides:
getErrorMessage in class LinkValidationResult
Returns:
the errorMessage.

getHttpStatusCode

public int getHttpStatusCode()
Returns the httpStatusCode.

Returns:
int

toString

public String toString()

Overrides:
toString in class LinkValidationResult


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.