org.w3c.tidy.servlet.data
Class SessionRepositoryFactory

java.lang.Object
  extended byorg.w3c.tidy.servlet.data.DefaultRepositoryFactory
      extended byorg.w3c.tidy.servlet.data.SessionRepositoryFactory
All Implemented Interfaces:
RepositoryFactory

public class SessionRepositoryFactory
extends DefaultRepositoryFactory

Store Repository in http session.

Version:
$Revision: 1.2 $ ($Author: vlads $)
Author:
Vlad Skarzhevskyy skarzhevskyy@gmail.com

Field Summary
static java.lang.String ATTRIBUTE_REPOSITORY
          Session attribute, used to store Repository in Session.
 
Constructor Summary
SessionRepositoryFactory()
           
 
Method Summary
 long generateNewRequestID(javax.servlet.http.HttpSession httpSession)
          Implementation of sequence generator.
 ResponseRecordRepository getRepositoryInstance(javax.servlet.http.HttpSession httpSession)
          Get the Repository where to store validation results.
 
Methods inherited from class org.w3c.tidy.servlet.data.DefaultRepositoryFactory
allowURI, createRecord, getResponseID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_REPOSITORY

public static final java.lang.String ATTRIBUTE_REPOSITORY
Session attribute, used to store Repository in Session.

See Also:
Constant Field Values
Constructor Detail

SessionRepositoryFactory

public SessionRepositoryFactory()
Method Detail

getRepositoryInstance

public ResponseRecordRepository getRepositoryInstance(javax.servlet.http.HttpSession httpSession)
Description copied from class: DefaultRepositoryFactory
Get the Repository where to store validation results.

Specified by:
getRepositoryInstance in interface RepositoryFactory
Overrides:
getRepositoryInstance in class DefaultRepositoryFactory

generateNewRequestID

public long generateNewRequestID(javax.servlet.http.HttpSession httpSession)
Implementation of sequence generator.

Overrides:
generateNewRequestID in class DefaultRepositoryFactory
Returns:
Returns the requst new ID when asked.


Copyright © 2004-2005 sourceforge. All Rights Reserved.