org.w3c.tidy.servlet.data
Class DefaultResponseRecord

java.lang.Object
  extended byorg.w3c.tidy.servlet.data.DefaultResponseRecord
All Implemented Interfaces:
ResponseRecord, org.w3c.tidy.TidyMessageListener

public class DefaultResponseRecord
extends java.lang.Object
implements org.w3c.tidy.TidyMessageListener, ResponseRecord

Data to store Validation results and error.

Version:
$Revision: 1.2 $ ($Author: vlads $)
Author:
Vlad Skarzhevskyy skarzhevskyy@gmail.com
To Do:
Create the API interface for adding additional attributes like JSP name, action

Constructor Summary
DefaultResponseRecord()
           
 
Method Summary
 java.lang.String getHtmlInput()
           
 java.lang.String getHtmlOutput()
           
 java.lang.String getImageName()
           
 java.util.List getMessages()
           
 int getParseErrors()
           
 int getParseWarnings()
           
 long getParsTime()
           
 java.lang.String getReport()
           
 java.lang.Object getRequestID()
           
 long getWhen()
           
 void messageReceived(org.w3c.tidy.TidyMessage message)
           
 void setHtmlInput(java.lang.String html)
           
 void setHtmlOutput(java.lang.String html)
           
 void setParseErrors(int parseErrors)
           
 void setParseWarnings(int parseWarnings)
           
 void setParsTime(long parsTime)
           
 void setReport(java.lang.String report)
           
 void setRequestID(java.lang.Object requestID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultResponseRecord

public DefaultResponseRecord()
Method Detail

messageReceived

public void messageReceived(org.w3c.tidy.TidyMessage message)
Specified by:
messageReceived in interface org.w3c.tidy.TidyMessageListener

getRequestID

public java.lang.Object getRequestID()
Specified by:
getRequestID in interface ResponseRecord
Returns:
Returns the requestID.

setRequestID

public void setRequestID(java.lang.Object requestID)
Specified by:
setRequestID in interface ResponseRecord
Parameters:
requestID - The requestID to set.

getHtmlInput

public java.lang.String getHtmlInput()
Specified by:
getHtmlInput in interface ResponseRecord
Returns:
Returns the html.

setHtmlInput

public void setHtmlInput(java.lang.String html)
Specified by:
setHtmlInput in interface ResponseRecord
Parameters:
html - The html to set.

getParseErrors

public int getParseErrors()
Specified by:
getParseErrors in interface ResponseRecord
Returns:
Returns the parseErrors.

setParseErrors

public void setParseErrors(int parseErrors)
Parameters:
parseErrors - The parseErrors to set.

getParseWarnings

public int getParseWarnings()
Specified by:
getParseWarnings in interface ResponseRecord
Returns:
Returns the parseWarnings.

setParseWarnings

public void setParseWarnings(int parseWarnings)
Parameters:
parseWarnings - The parseWarnings to set.

getReport

public java.lang.String getReport()
Returns:
Returns the report.

setReport

public void setReport(java.lang.String report)
Parameters:
report - The report to set.

getMessages

public java.util.List getMessages()
Specified by:
getMessages in interface ResponseRecord
Returns:
Returns the messages.
See Also:
TidyMessage

getParsTime

public long getParsTime()
Specified by:
getParsTime in interface ResponseRecord
Returns:
Returns the parsTime.

setParsTime

public void setParsTime(long parsTime)
Specified by:
setParsTime in interface ResponseRecord
Parameters:
parsTime - The parsTime to set.

getWhen

public long getWhen()
Specified by:
getWhen in interface ResponseRecord
Returns:
Returns the when.

getHtmlOutput

public java.lang.String getHtmlOutput()
Specified by:
getHtmlOutput in interface ResponseRecord
Returns:
Returns the htmlResult.

setHtmlOutput

public void setHtmlOutput(java.lang.String html)
Specified by:
setHtmlOutput in interface ResponseRecord
Parameters:
html - The htmlResult to set.

getImageName

public java.lang.String getImageName()
Specified by:
getImageName in interface ResponseRecord
Returns:
Returns the part of ImageName shown as icon or null to use default implementation


Copyright © 2004-2005 sourceforge. All Rights Reserved.