|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.ObjectHttpServletResponseWrapper
com.beetle.framework.web.cache.imp.CacheHttpServletResponseWrapper
public class CacheHttpServletResponseWrapper
| 构造方法摘要 | |
|---|---|
CacheHttpServletResponseWrapper(HttpServletResponse response)
Constructor |
|
| 方法摘要 | |
|---|---|
void |
addHeader(java.lang.String name,
java.lang.String value)
Add a header field |
void |
flushBuffer()
|
ResponseContent |
getContent()
Get a response content |
ServletOutputStream |
getOutputStream()
Get an output stream |
int |
getStatus()
Retrieves the captured HttpResponse status. |
java.io.PrintWriter |
getWriter()
Get a print writer |
void |
sendError(int status)
We override this so we can catch the response status. |
void |
sendError(int status,
java.lang.String string)
We override this so we can catch the response status. |
void |
sendRedirect(java.lang.String location)
|
void |
setContentType(java.lang.String value)
Set the content type |
void |
setDateHeader(java.lang.String name,
long value)
Set the date of a header |
void |
setHeader(java.lang.String name,
java.lang.String value)
Set a header field |
void |
setIntHeader(java.lang.String name,
int value)
Set the int value of the header |
void |
setLocale(java.util.Locale value)
Set the locale |
void |
setStatus(int status)
We override this so we can catch the response status. |
void |
setStatus(int status,
java.lang.String string)
We override this so we can catch the response status. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public CacheHttpServletResponseWrapper(HttpServletResponse response)
response - The servlet response| 方法详细信息 |
|---|
public ResponseContent getContent()
public void setContentType(java.lang.String value)
value - The content type
public void setDateHeader(java.lang.String name,
long value)
name - The header namevalue - The date
public void setHeader(java.lang.String name,
java.lang.String value)
name - The header namevalue - The header value
public void addHeader(java.lang.String name,
java.lang.String value)
name - The header namevalue - The header value
public void setIntHeader(java.lang.String name,
int value)
name - The header namevalue - The int valuepublic void setStatus(int status)
SC_OK) will
be cached.
public void sendError(int status,
java.lang.String string)
throws java.io.IOException
SC_OK) will
be cached.
java.io.IOException
public void sendError(int status)
throws java.io.IOException
SC_OK) will
be cached.
java.io.IOException
public void setStatus(int status,
java.lang.String string)
SC_OK) will
be cached.
public void sendRedirect(java.lang.String location)
throws java.io.IOException
java.io.IOExceptionpublic int getStatus()
public void setLocale(java.util.Locale value)
value - The locale
public ServletOutputStream getOutputStream()
throws java.io.IOException
java.io.IOException
public java.io.PrintWriter getWriter()
throws java.io.IOException
java.io.IOException
public void flushBuffer()
throws java.io.IOException
java.io.IOException
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||