![]() |
|
||||||||||||||
| | 网站首页 | 数据库教程 | web编程 | 服务器 | 程序设计 | | ||
|
||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| javax.servlet.servletresponsewrapper翻译 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
作者:佚名 文章来源:不详 点击数: 更新时间:2007-7-1 ![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
javax.servlet |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 正在装载数据…… |
ServletResponse| Constructor Summary | |
ServletResponseWrapper(ServletResponse response) Creates a ServletResponse adaptor wrapping the given response object. 创建一个ServletResponse适配器,包装指定的响应对象。 | |
| Method Summary | |
void | flushBuffer() The default behavior of this method is to call flushBuffer() on the wrapped response object. 该方法的默认行为是调用经过包装的响应对象的flushBuffer()。 |
int | getBufferSize() The default behavior of this method is to return getBufferSize() on the wrapped response object. 该方法的默认行为是返回经过包装的响应对象的getBufferSize()。 |
String | getCharacterEncoding() The default behavior of this method is to return getCharacterEncoding() on the wrapped response object. 该方法的默认行为是返回经过包装的响应对象的getCharacterEncoding()。 |
String | getContentType() The default behavior of this method is to return getContentType() on the wrapped response object. 该方法的默认行为是返回经过包装的响应对象的getContentType()。 |
Locale | getLocale() The default behavior of this method is to return getLocale() on the wrapped response object. 该方法的默认行为是返回经过包装的响应对象的getLocale()。 |
ServletOutputStream | getOutputStream() The default behavior of this method is to return getOutputStream() on the wrapped response object. 该方法的默认行为是返回经过包装的响应对象的getOutputStream()。 |
ServletResponse | getResponse() Return the wrapped ServletResponse object. 返回经过包装的ServletResponse对象。 |
PrintWriter | getWriter() The default behavior of this method is to return getWriter() on the wrapped response object. 该方法的默认行为是返回经过包装的响应对象的getWriter()。 |
boolean | isCommitted() The default behavior of this method is to return isCommitted() on the wrapped response object. 该方法的默认行为是返回经过包装的响应对象的isCommitted()。 |
void | reset() The default behavior of this method is to call reset() on the wrapped response object. 该方法的默认行为是调用经过包装的响应对象的reset()。 |
void | resetBuffer() The default behavior of this method is to call resetBuffer() on the wrapped response object. 该方法的默认行为是调用经过包装的响应对象的resetBuffer()。 |
void | setBufferSize(int size) The default behavior of this method is to call setBufferSize(int size) on the wrapped response object. 该方法的默认行为是调用经过包装的响应对象的setBufferSize(int size)。 |
void | setCharacterEncoding(String charset) The default behavior of this method is to call setCharacterEncoding(String charset) on the wrapped response object. 该方法的默认行为是调用经过包装的响应对象的setCharacterEncoding(String charset)。 |
void | setContentLength(int len) The default behavior of this method is to call setContentLength(int len) on the wrapped response object. 该方法的默认行为是调用经过包装的响应对象的setContentLength(int len)。 |
void | setContentType(String type) The default behavior of this method is to call setContentType(String type) on the wrapped response object. 该方法的默认行为是调用经过包装的响应对象的setContentType(String type)。 |
void | setLocale(Locale loc) The default behavior of this method is to call setLocale(Locale loc) on the wrapped response object. 该方法的默认行为是调用经过包装的响应对象的setLocale(Locale loc)。 |
void | setResponse(ServletResponse response) Sets the response being wrapped. 设置要包装的响应。 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
IllegalArgumentException - if the response is null. 如果响应为null时抛出。| Method Detail |
IllegalArgumentException - if the response is null. 如果响应为null时抛出。
setCharacterEncoding in interface ServletResponsecharset - a String specifying only the character set defined by IANA Character Sets (http://www.iana.org/assignments/character-sets) String,只表示由IANA字符集(http://www.iana.org/assignments/character-sets)定义的字符集 #setLocale
getCharacterEncoding in interface ServletResponseString specifying the name of the character encoding, for example, UTF-8 String,表示字符编码名称,比如UTF-8
getOutputStream in interface ServletResponseServletOutputStream for writing binary data 输出二进制数据的ServletOutputStream IOException - if an input or output exception occurred 如果发生输入输出异常时抛出 ServletResponse.getWriter()
getWriter in interface ServletResponsePrintWriter object that can return character data to the client PrintWriter对象,可以返回客户端的字符数据 IOException - if an input or output exception occurred 如果发生输入输出异常时抛出 ServletResponse.getOutputStream(), ServletResponse.setCharacterEncoding(java.lang.String)
setContentLength in interface ServletResponselen - an integer specifying the length of the content being returned to the client; sets the Content-Length header 整数,表示返回给客户端的内容长度;设置Content-Length头
setContentType in interface ServletResponsetype - a String specifying the MIME type of the content String,表示内容的MIME类型 ServletResponse.setLocale(java.util.Locale), ServletResponse.setCharacterEncoding(java.lang.String), ServletResponse.getOutputStream(), ServletResponse.getWriter()
getContentType in interface ServletResponseString specifying the content type, for example, text/html; charset=UTF-8, or null String,表示内容类型,比如text/html; charset=UTF-8或者为null
setBufferSize in interface ServletResponsesize - the divferred buffer size 采用的缓存大小 ServletResponse.getBufferSize(), ServletResponse.flushBuffer(), ServletResponse.isCommitted(), ServletResponse.reset()
getBufferSize in interface ServletResponseServletResponse.setBufferSize(int), ServletResponse.flushBuffer(), ServletResponse.isCommitted(), ServletResponse.reset()
flushBuffer in interface ServletResponseIOException ServletResponse.setBufferSize(int), ServletResponse.getBufferSize(), ServletResponse.isCommitted(), ServletResponse.reset()
isCommitted in interface ServletResponseServletResponse.setBufferSize(int), ServletResponse.getBufferSize(), ServletResponse.flushBuffer(), ServletResponse.reset()
reset in interface ServletResponseServletResponse.setBufferSize(int), ServletResponse.getBufferSize(), ServletResponse.flushBuffer(), ServletResponse.isCommitted()
resetBuffer in interface ServletResponseServletResponse.setBufferSize(int), ServletResponse.getBufferSize(), ServletResponse.isCommitted(), ServletResponse.reset()
setLocale in interface ServletResponseloc - the locale of the response 响应的locale ServletResponse.getLocale(), ServletResponse.setContentType(java.lang.String), ServletResponse.setCharacterEncoding(java.lang.String)
getLocale in interface ServletResponseServletResponse.setLocale(java.util.Locale)
| JavaTM 2 Platform Ent. Ed. v1.4 | |||||||||
| divV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2003 Sun Microsystems, Inc. All rights reserved.
| 高级搜索 |
| 网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!) |
| | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 网站公告 | 网站地图 | 管理登录 | | |||
|