public class QuercusHttpServletResponseImpl extends java.lang.Object implements QuercusHttpServletResponse
Constructor and Description |
---|
QuercusHttpServletResponseImpl(HttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
void |
addCookie(QuercusCookie cookie) |
void |
addHeader(java.lang.String name,
java.lang.String value) |
java.lang.String |
getCharacterEncoding() |
java.io.OutputStream |
getOutputStream() |
boolean |
isCommitted() |
void |
setCharacterEncoding(java.lang.String encoding) |
void |
setContentType(java.lang.String type) |
void |
setHeader(java.lang.String name,
java.lang.String value) |
void |
setStatus(int code,
java.lang.String status) |
<T> T |
toResponse(java.lang.Class<T> cls) |
public QuercusHttpServletResponseImpl(HttpServletResponse response)
public void setContentType(java.lang.String type)
setContentType
in interface QuercusHttpServletResponse
public void addHeader(java.lang.String name, java.lang.String value)
addHeader
in interface QuercusHttpServletResponse
public void setHeader(java.lang.String name, java.lang.String value)
setHeader
in interface QuercusHttpServletResponse
public void setStatus(int code, java.lang.String status)
setStatus
in interface QuercusHttpServletResponse
public java.lang.String getCharacterEncoding()
getCharacterEncoding
in interface QuercusHttpServletResponse
public void setCharacterEncoding(java.lang.String encoding)
setCharacterEncoding
in interface QuercusHttpServletResponse
public void addCookie(QuercusCookie cookie)
addCookie
in interface QuercusHttpServletResponse
public boolean isCommitted()
isCommitted
in interface QuercusHttpServletResponse
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface QuercusHttpServletResponse
java.io.IOException
public <T> T toResponse(java.lang.Class<T> cls)
toResponse
in interface QuercusHttpServletResponse