org.w3c.tidy.servlet.data
Class DefaultResponseRecordRepository

java.lang.Object
  extended byorg.w3c.tidy.servlet.data.DefaultResponseRecordRepository
All Implemented Interfaces:
ResponseRecordRepository

public class DefaultResponseRecordRepository
extends java.lang.Object
implements ResponseRecordRepository

Static Class to store Validation results and Error.

Version:
$Revision: 1.3 $ ($Author: fgiust $)
Author:
Vlad Skarzhevskyy skarzhevskyy@gmail.com
To Do:
automatically remove old data

Constructor Summary
DefaultResponseRecordRepository()
          Create the Repository
 
Method Summary
 void addRecord(ResponseRecord result)
          Add processing results to repository.
 java.lang.Object getLastPK()
          {@inheritDoc}
 ResponseRecord getRecord(java.lang.Object key)
          Immediately get the results.
 ResponseRecord getRecord(java.lang.Object key, int sleep)
          Get results sleep if not yet avalable. Used to get validation image Request from browser will come before JTidy processed the HTML
 java.lang.Object getResponseID(java.lang.String keyString)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultResponseRecordRepository

public DefaultResponseRecordRepository()
Create the Repository

Method Detail

addRecord

public void addRecord(ResponseRecord result)
Add processing results to repository.

Specified by:
addRecord in interface ResponseRecordRepository

getLastPK

public java.lang.Object getLastPK()
{@inheritDoc}


getResponseID

public java.lang.Object getResponseID(java.lang.String keyString)

Specified by:
getResponseID in interface ResponseRecordRepository
Returns:
Returns the Request ID converted from String or null if it should be ignored by JTidy.

getRecord

public ResponseRecord getRecord(java.lang.Object key)
Immediately get the results.

Specified by:
getRecord in interface ResponseRecordRepository
Returns:
Returns processing results for given resultID, or null if the repository contains no mapping for this key.

getRecord

public ResponseRecord getRecord(java.lang.Object key,
                                int sleep)
Get results sleep if not yet avalable. Used to get validation image Request from browser will come before JTidy processed the HTML

Specified by:
getRecord in interface ResponseRecordRepository
Returns:
Returns processing results for given resultID, or null if the repository contains no mapping for this key.


Copyright © 2004-2005 sourceforge. All Rights Reserved.