/**
* Fetch the response wrapper of type CacheProxyResponse if one can be
* found.
*
* @param servletResponse
* the current servlet response.
* @return the response wrapper of type CacheProxyResponse if one can be
* found.
*/
private static CacheProxyResponse fetchCacheProxyResponse(
ServletResponse servletResponse) {
CacheProxyResponse cachedResponse = null;
ServletResponse findResponse = servletResponse;
while (findResponse instanceof HttpServletResponseWrapper) {
if (findResponse instanceof CacheProxyResponse) {
cachedResponse = (CacheProxyResponse) findResponse;
break;
}
HttpServletResponseWrapper wrapper = (HttpServletResponseWrapper) findResponse;
findResponse = wrapper.getResponse();
}
return cachedResponse;
}
WasCacheHitCheckServletFilter.java 文件源码
java
阅读 60
收藏 0
点赞 0
评论 0
项目:ibm-performance-monitor
作者:
评论列表
文章目录