public interface TestableResponse extends Response
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears internal state, in preparation for the next test.
|
String |
getContentType()
Returns the the MIME content type for the output.
|
String |
getErrorMessage()
Returns the error message, if available.
|
Object |
getHeader(String name)
Returns the named header.
|
List<?> |
getHeaders(String name)
Returns the values of a named header.
|
String |
getOutput()
Returns the content of the
ServletOutputStream as string. |
Link |
getRedirectLink()
Returns the link redirected to via
Response.sendRedirect(org.apache.tapestry5.Link) . |
String |
getRedirectURL()
Returns the redirect URL.
|
Document |
getRenderedDocument()
Allows access to the rendered document.
|
int |
getStatus()
Returns the status code for this response.
|
void |
setRenderedDocument(Document document)
Invoked as part of the rendering pipeline to store the final rendered Document object.
|
addHeader, disableCompression, encodeRedirectURL, encodeURL, getOutputStream, getPrintWriter, isCommitted, sendError, sendRedirect, sendRedirect, setContentLength, setDateHeader, setHeader, setIntHeader, setStatus
void setRenderedDocument(Document document)
Document getRenderedDocument()
Link getRedirectLink()
Response.sendRedirect(org.apache.tapestry5.Link)
.void clear()
List<?> getHeaders(String name)
String getRedirectURL()
int getStatus()
String getErrorMessage()
String getContentType()
String getOutput()
ServletOutputStream
as string.5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.