|
|||||||||
| 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 ObjectCloneNotSupportedExceptionpublic void clear()
public void finish()
public boolean isFinished()
public String getCharacterEncoding()
getCharacterEncoding in interface ServletResponse
public ServletOutputStream getOutputStream()
throws IOException
getOutputStream in interface ServletResponseIOException
public PrintWriter getWriter()
throws IOException
getWriter in interface ServletResponseIOExceptionpublic void setContentLength(int len)
setContentLength in interface ServletResponsepublic void setContentType(String type)
setContentType in interface ServletResponsepublic void setBufferSize(int size)
setBufferSize in interface ServletResponsepublic int getBufferSize()
getBufferSize in interface ServletResponse
public void flushBuffer()
throws IOException
flushBuffer in interface ServletResponseIOExceptionpublic void resetBuffer()
resetBuffer in interface ServletResponsepublic boolean isCommitted()
isCommitted in interface ServletResponsepublic void reset()
reset in interface ServletResponsepublic void setLocale(Locale loc)
setLocale in interface ServletResponsepublic Locale getLocale()
getLocale in interface ServletResponsepublic void addCookie(Cookie cookie)
addCookie in interface HttpServletResponsepublic boolean containsHeader(String name)
containsHeader in interface HttpServletResponsepublic String encodeURL(String url)
encodeURL in interface HttpServletResponsepublic String encodeRedirectURL(String url)
encodeRedirectURL in interface HttpServletResponsepublic String encodeUrl(String url)
encodeUrl in interface HttpServletResponsepublic String encodeRedirectUrl(String url)
encodeRedirectUrl in interface HttpServletResponse
public void sendError(int sc,
String msg)
throws IOException
sendError in interface HttpServletResponseIOException
public void sendError(int sc)
throws IOException
sendError in interface HttpServletResponseIOException
public void sendRedirect(String location)
throws IOException
sendRedirect in interface HttpServletResponseIOException
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 HttpServletResponsepublic void setStatus(int sc)
setStatus in interface HttpServletResponse
public void setStatus(int sc,
String sm)
setStatus in interface HttpServletResponsepublic 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 ServletResponsepublic void setCharacterEncoding(String charEnc)
setCharacterEncoding in interface ServletResponse
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||