| Modifier and Type | Field and Description |
|---|---|
protected String |
contentType |
protected ByteArrayOutputStream |
outputStream |
protected PrintWriter |
printWriter |
protected org.apache.tapestry5.services.Response |
wrappedResponse |
| Constructor and Description |
|---|
AppModule.ResponseWrapper(org.apache.tapestry5.services.Response wrappedResponse) |
| Modifier and Type | Method and Description |
|---|---|
void |
disableCompression() |
String |
encodeRedirectURL(String URL) |
String |
encodeURL(String URL) |
OutputStream |
getOutputStream(String contentType) |
PrintWriter |
getPrintWriter(String contentType) |
boolean |
isCommitted() |
void |
sendError(int sc,
String message) |
void |
sendRedirect(org.apache.tapestry5.Link link) |
void |
sendRedirect(String URL) |
void |
setContentLength(int length) |
void |
setDateHeader(String name,
long date) |
void |
setHeader(String name,
String value) |
void |
setIntHeader(String name,
int value) |
void |
setStatus(int sc) |
protected org.apache.tapestry5.services.Response wrappedResponse
protected ByteArrayOutputStream outputStream
protected PrintWriter printWriter
protected String contentType
public AppModule.ResponseWrapper(org.apache.tapestry5.services.Response wrappedResponse)
public PrintWriter getPrintWriter(String contentType) throws IOException
getPrintWriter in interface org.apache.tapestry5.services.ResponseIOExceptionpublic OutputStream getOutputStream(String contentType) throws IOException
getOutputStream in interface org.apache.tapestry5.services.ResponseIOExceptionpublic void sendRedirect(String URL) throws IOException
sendRedirect in interface org.apache.tapestry5.services.ResponseIOExceptionpublic void sendRedirect(org.apache.tapestry5.Link link)
throws IOException
sendRedirect in interface org.apache.tapestry5.services.ResponseIOExceptionpublic void setStatus(int sc)
setStatus in interface org.apache.tapestry5.services.Responsepublic void sendError(int sc,
String message)
throws IOException
sendError in interface org.apache.tapestry5.services.ResponseIOExceptionpublic void setContentLength(int length)
setContentLength in interface org.apache.tapestry5.services.Responsepublic void setDateHeader(String name, long date)
setDateHeader in interface org.apache.tapestry5.services.Responsepublic void setHeader(String name, String value)
setHeader in interface org.apache.tapestry5.services.Responsepublic void setIntHeader(String name, int value)
setIntHeader in interface org.apache.tapestry5.services.Responsepublic String encodeURL(String URL)
encodeURL in interface org.apache.tapestry5.services.Responsepublic String encodeRedirectURL(String URL)
encodeRedirectURL in interface org.apache.tapestry5.services.Responsepublic boolean isCommitted()
isCommitted in interface org.apache.tapestry5.services.Responsepublic void disableCompression()
disableCompression in interface org.apache.tapestry5.services.ResponseCopyright © 2009-2013 Ifremer. All Rights Reserved.