📄 bufferedresponsewrapper.java
字号:
/** * Licensed under the Artistic License; you may not use this file * except in compliance with the License. * You may obtain a copy of the License at * * http://displaytag.sourceforge.net/license.html * * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */package org.displaytag.filter;import javax.servlet.http.HttpServletResponse;/** * Buffers the response; will not send anything directly through to the actual response. Note that this blocks the * content-type from being set, you must set it manually in the response. * @author Fabrizio Giustina * @version $Revision: 1081 $ ($Author: fgiust $) */public interface BufferedResponseWrapper extends HttpServletResponse{ /** * Headers which cause problems during file download. */ String[] FILTERED_HEADERS = new String[]{"cache-control", "expires", "pragma"}; /** * Return <code>true</code> if ServletOutputStream has been requested from Table tag. * @return <code>true</code> if ServletOutputStream has been requested */ boolean isOutRequested(); /** * If the app server sets the content-type of the response, it is sticky and you will not be able to change it. * Therefore it is intercepted here. * @return the ContentType that was most recently set */ String getContentType(); /** * Returns the String representation of the content written to the response. * @return the content of the response */ String getContentAsString();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -