|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.http.servlet.HttpServletResponseImpl
public class HttpServletResponseImpl
Facade class that wraps a GrizzlyResponse
object.
All methods are delegated to the wrapped response.
Field Summary | |
---|---|
protected GrizzlyResponse |
response
The wrapped response. |
protected static StringManager |
sm
The string manager for this package. |
Constructor Summary | |
---|---|
HttpServletResponseImpl(GrizzlyResponse response)
Construct a wrapper for the specified response. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final StringManager sm
protected GrizzlyResponse response
Constructor Detail |
---|
public HttpServletResponseImpl(GrizzlyResponse response) throws IOException
response
- The response to be wrapped
IOException
Method Detail |
---|
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void clear()
public void finish()
public boolean isFinished()
public String getCharacterEncoding()
getCharacterEncoding
in interface ServletResponse
public ServletOutputStream getOutputStream() throws IOException
getOutputStream
in interface ServletResponse
IOException
public PrintWriter getWriter() throws IOException
getWriter
in interface ServletResponse
IOException
public void setContentLength(int len)
setContentLength
in interface ServletResponse
public void setContentType(String type)
setContentType
in interface ServletResponse
public void setBufferSize(int size)
setBufferSize
in interface ServletResponse
public int getBufferSize()
getBufferSize
in interface ServletResponse
public void flushBuffer() throws IOException
flushBuffer
in interface ServletResponse
IOException
public void resetBuffer()
resetBuffer
in interface ServletResponse
public boolean isCommitted()
isCommitted
in interface ServletResponse
public void reset()
reset
in interface ServletResponse
public void setLocale(Locale loc)
setLocale
in interface ServletResponse
public Locale getLocale()
getLocale
in interface ServletResponse
public void addCookie(Cookie cookie)
addCookie
in interface HttpServletResponse
public boolean containsHeader(String name)
containsHeader
in interface HttpServletResponse
public String encodeURL(String url)
encodeURL
in interface HttpServletResponse
public String encodeRedirectURL(String url)
encodeRedirectURL
in interface HttpServletResponse
public String encodeUrl(String url)
encodeUrl
in interface HttpServletResponse
public String encodeRedirectUrl(String url)
encodeRedirectUrl
in interface HttpServletResponse
public void sendError(int sc, String msg) throws IOException
sendError
in interface HttpServletResponse
IOException
public void sendError(int sc) throws IOException
sendError
in interface HttpServletResponse
IOException
public void sendRedirect(String location) throws IOException
sendRedirect
in interface HttpServletResponse
IOException
public void setDateHeader(String name, long date)
setDateHeader
in interface HttpServletResponse
public void addDateHeader(String name, long date)
addDateHeader
in interface HttpServletResponse
public void setHeader(String name, String value)
setHeader
in interface HttpServletResponse
public void addHeader(String name, String value)
addHeader
in interface HttpServletResponse
public void setIntHeader(String name, int value)
setIntHeader
in interface HttpServletResponse
public void addIntHeader(String name, int value)
addIntHeader
in interface HttpServletResponse
public void setStatus(int sc)
setStatus
in interface HttpServletResponse
public void setStatus(int sc, String sm)
setStatus
in interface HttpServletResponse
public int getStatus()
public String getMessage()
public void setSuspended(boolean suspended)
public void setAppCommitted(boolean appCommitted)
public int getContentCount()
public boolean isError()
public String getContentType()
getContentType
in interface ServletResponse
public void setCharacterEncoding(String charEnc)
setCharacterEncoding
in interface ServletResponse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |