|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.GenericService
atg.nucleus.TimedOperationService
atg.servlet.pipeline.PipelineableServletImpl
atg.servlet.pipeline.InsertableServletImpl
com.digitalsanctuary.atg.servlet.pipeline.CacheControllerPipelineServlet
Checks the request based on mime-type and URI, and determines the correct cache related response headers to return. For instance you might want to cache images for a month, CSS files for a week, and JSPs not at all.
Field Summary |
Fields inherited from class atg.servlet.pipeline.InsertableServletImpl |
CLASS_VERSION |
Fields inherited from class atg.nucleus.GenericService |
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
CacheControllerPipelineServlet()
|
Method Summary | |
void |
flushCache()
This method flushes the URI-cache time cache. |
java.util.Map |
getMimeTypeCacheMap()
|
java.util.Map |
getURICacheMap()
|
boolean |
isCacheRequestsWithQueryParams()
|
void |
service(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Checks the request based on mime-type and URI, and determines the correct cache related response headers to return. |
void |
setCacheRequestsWithQueryParams(boolean pCacheRequestsWithQueryParams)
|
void |
setMimeTypeCacheMap(java.util.Map pMimeTypeCacheMap)
|
void |
setURICacheMap(java.util.Map pCacheMap)
|
Methods inherited from class atg.servlet.pipeline.InsertableServletImpl |
doStartService, getInsertAfterServlet, setInsertAfterServlet |
Methods inherited from class atg.servlet.pipeline.PipelineableServletImpl |
createAdminServlet, destroy, getAdminServlet, getNextServlet, getServletConfig, getServletInfo, init, passRequest, passRequest, service, service, setNextServlet, setServletInfo |
Methods inherited from class atg.nucleus.TimedOperationService |
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics |
Methods inherited from class atg.nucleus.GenericService |
addLogListener, doStopService, getAbsoluteName, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingWarning, setServiceInfo, startService, stopService |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface atg.servlet.pipeline.PipelineableServlet |
getNextServlet, passRequest, setNextServlet |
Methods inherited from interface javax.servlet.Servlet |
destroy, getServletConfig, getServletInfo, init, service |
Constructor Detail |
public CacheControllerPipelineServlet()
Method Detail |
public void service(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
pRequest
- the ATG Request.pResponse
- the ATG Response.
java.io.IOException
- in case of error.
javax.servlet.ServletException
- in case of error.PipelineableServletImpl.service(atg.servlet.DynamoHttpServletRequest,
atg.servlet.DynamoHttpServletResponse)
public void flushCache()
public java.util.Map getMimeTypeCacheMap()
public void setMimeTypeCacheMap(java.util.Map pMimeTypeCacheMap)
pMimeTypeCacheMap
- the mimeTypeCacheMap to setpublic java.util.Map getURICacheMap()
public void setURICacheMap(java.util.Map pCacheMap)
pCacheMap
- the uRICacheMap to setpublic boolean isCacheRequestsWithQueryParams()
public void setCacheRequestsWithQueryParams(boolean pCacheRequestsWithQueryParams)
pCacheRequestsWithQueryParams
- the cacheRequestsWithQueryParams to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |