public class ThreadLocalHttpServletResponse extends AbstractRestThreadLocalProxy<HttpServletResponse>
Modifier | Constructor and Description |
---|---|
protected |
ThreadLocalHttpServletResponse() |
Modifier and Type | Method and Description |
---|---|
void |
addCookie(Cookie cookie) |
void |
addDateHeader(java.lang.String name,
long date) |
void |
addHeader(java.lang.String name,
java.lang.String value) |
void |
addIntHeader(java.lang.String name,
int value) |
boolean |
containsHeader(java.lang.String name) |
java.lang.String |
encodeRedirectUrl(java.lang.String url) |
java.lang.String |
encodeRedirectURL(java.lang.String url) |
java.lang.String |
encodeUrl(java.lang.String url) |
java.lang.String |
encodeURL(java.lang.String url) |
void |
flushBuffer() |
int |
getBufferSize() |
java.lang.String |
getCharacterEncoding() |
java.lang.String |
getContentType() |
java.lang.String |
getHeader(java.lang.String name) |
java.util.Collection<java.lang.String> |
getHeaderNames() |
java.util.Collection<java.lang.String> |
getHeaders(java.lang.String headerName) |
java.util.Locale |
getLocale() |
ServletOutputStream |
getOutputStream() |
int |
getStatus() |
java.io.PrintWriter |
getWriter() |
boolean |
isCommitted() |
void |
reset() |
void |
resetBuffer() |
void |
sendError(int sc) |
void |
sendError(int sc,
java.lang.String msg) |
void |
sendRedirect(java.lang.String location) |
void |
setBufferSize(int size) |
void |
setCharacterEncoding(java.lang.String charset) |
void |
setContentLength(int len) |
void |
setContentLengthLong(long length) |
void |
setContentType(java.lang.String type) |
void |
setDateHeader(java.lang.String name,
long date) |
void |
setHeader(java.lang.String name,
java.lang.String value) |
void |
setIntHeader(java.lang.String name,
int value) |
void |
setLocale(java.util.Locale loc) |
void |
setStatus(int sc) |
void |
setStatus(int sc,
java.lang.String sm) |
find, get, remove, set
public void addCookie(Cookie cookie)
public void addDateHeader(java.lang.String name, long date)
public void addHeader(java.lang.String name, java.lang.String value)
public void addIntHeader(java.lang.String name, int value)
public boolean containsHeader(java.lang.String name)
public java.lang.String encodeURL(java.lang.String url)
public java.lang.String encodeRedirectURL(java.lang.String url)
public java.lang.String encodeUrl(java.lang.String url)
public java.lang.String encodeRedirectUrl(java.lang.String url)
public java.lang.String getHeader(java.lang.String name)
public java.util.Collection<java.lang.String> getHeaderNames()
public java.util.Collection<java.lang.String> getHeaders(java.lang.String headerName)
public int getStatus()
public void sendError(int sc) throws java.io.IOException
java.io.IOException
public void sendError(int sc, java.lang.String msg) throws java.io.IOException
java.io.IOException
public void sendRedirect(java.lang.String location) throws java.io.IOException
java.io.IOException
public void setDateHeader(java.lang.String name, long date)
public void setHeader(java.lang.String name, java.lang.String value)
public void setIntHeader(java.lang.String name, int value)
public void setStatus(int sc)
public void setStatus(int sc, java.lang.String sm)
public void flushBuffer() throws java.io.IOException
java.io.IOException
public int getBufferSize()
public java.lang.String getCharacterEncoding()
public java.lang.String getContentType()
public java.util.Locale getLocale()
public ServletOutputStream getOutputStream() throws java.io.IOException
java.io.IOException
public java.io.PrintWriter getWriter() throws java.io.IOException
java.io.IOException
public boolean isCommitted()
public void reset()
public void resetBuffer()
public void setBufferSize(int size)
public void setCharacterEncoding(java.lang.String charset)
public void setContentLength(int len)
public void setContentLengthLong(long length)
public void setContentType(java.lang.String type)
public void setLocale(java.util.Locale loc)