public class ServletResponseWrapper extends Object implements ResponseContext
Constructor and Description |
---|
ServletResponseWrapper(javax.servlet.http.HttpServletResponse res) |
Modifier and Type | Method and Description |
---|---|
void |
addCookie(javax.servlet.http.Cookie cookie) |
String |
encodeRedirectURL(String url) |
String |
encodeURL(String url) |
void |
flushBuffer() |
int |
getBufferSize() |
String |
getCharacterEncoding() |
String |
getContentType() |
Object |
getExternalResponse() |
Locale |
getLocale() |
OutputStream |
getOutputStream() |
PrintWriter |
getWriter() |
boolean |
isCommitted() |
void |
reset() |
void |
resetBuffer() |
void |
sendRedirect(String location) |
void |
setBufferSize(int size) |
void |
setContentType(String type) |
public ServletResponseWrapper(javax.servlet.http.HttpServletResponse res)
public Object getExternalResponse()
getExternalResponse
in interface ResponseContext
public void addCookie(javax.servlet.http.Cookie cookie)
addCookie
in interface ResponseContext
public String encodeURL(String url)
encodeURL
in interface ResponseContext
public String encodeRedirectURL(String url)
encodeRedirectURL
in interface ResponseContext
public void sendRedirect(String location) throws IOException
sendRedirect
in interface ResponseContext
IOException
public Locale getLocale()
getLocale
in interface ResponseContext
public String getCharacterEncoding()
getCharacterEncoding
in interface ResponseContext
public String getContentType()
getContentType
in interface ResponseContext
public void setContentType(String type)
setContentType
in interface ResponseContext
public int getBufferSize()
getBufferSize
in interface ResponseContext
public void setBufferSize(int size)
setBufferSize
in interface ResponseContext
public PrintWriter getWriter() throws IOException
getWriter
in interface ResponseContext
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface ResponseContext
IOException
public void flushBuffer() throws IOException
flushBuffer
in interface ResponseContext
IOException
public void resetBuffer()
resetBuffer
in interface ResponseContext
public boolean isCommitted()
isCommitted
in interface ResponseContext
public void reset()
reset
in interface ResponseContext
Copyright © 2008–2015 Apache Software Foundation. All rights reserved.