org.w3c.tidy.servlet
Interface ResponseRecordRepository

All Known Implementing Classes:
DefaultResponseRecordRepository

public interface ResponseRecordRepository

You could define your own Repository. Default implementation uses global static class You could bound your ResultsRepository to user session for example.

Version:
$Revision: 1.3 $ ($Author: vlads $)
Author:
Vlad Skarzhevskyy skarzhevskyy@gmail.com
See Also:
RepositoryFactory

Method Summary
 void addRecord(ResponseRecord record)
          Add processing results to repository.
 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.
 java.lang.Object getResponseID(java.lang.String keyString)
           
 

Method Detail

addRecord

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


getRecord

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

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

Returns:
Returns processing results for given resultID, or null if the repository contains no mapping for this key.

getResponseID

public java.lang.Object getResponseID(java.lang.String keyString)
Returns:
Returns the Request ID converted from String or null if it should be ignored by JTidy.


Copyright © 2004-2005 sourceforge. All Rights Reserved.