|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.tidy.servlet.data.DefaultRepositoryFactory
Default Factory implementation, Singleton.
Constructor Summary | |
DefaultRepositoryFactory()
|
Method Summary | |
boolean |
allowURI(java.lang.String uri)
Disable some pages validation or, save numbers for not important pages. |
ResponseRecord |
createRecord(java.lang.Object key,
javax.servlet.http.HttpSession httpSession,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Create new validation results Response Record. |
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. |
java.lang.Object |
getResponseID(javax.servlet.http.HttpSession httpSession,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean newResponse)
Get the ResponseID for given request. This bunction is called |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultRepositoryFactory()
Method Detail |
public ResponseRecordRepository getRepositoryInstance(javax.servlet.http.HttpSession httpSession)
getRepositoryInstance
in interface RepositoryFactory
httpSession
- Session to bound to.
public long generateNewRequestID(javax.servlet.http.HttpSession httpSession)
public boolean allowURI(java.lang.String uri)
public java.lang.Object getResponseID(javax.servlet.http.HttpSession httpSession, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean newResponse)
getResponseID
in interface RepositoryFactory
httpSession
- HttpSession that could store ID as attributerequest
- HttpServletRequest that could store ID as attribute, could be nullresponse
- HttpServletResponse that could store ID as attribute, could be nullnewResponse
- Create new ResponseID anyway
public ResponseRecord createRecord(java.lang.Object key, javax.servlet.http.HttpSession httpSession, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
createRecord
in interface RepositoryFactory
request
- HttpServletRequestresponse
- HttpServletResponse
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |