Interface TestableResponse
- All Superinterfaces:
Response
- All Known Implementing Classes:
TestableResponseImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears internal state, in preparation for the next test.Returns the the MIME content type for the output.Returns the error message, if available.Returns the named header.List<?>
getHeaders
(String name) Returns the values of a named header.Returns the content of theServletOutputStream
as string.Returns the link redirected to viaResponse.sendRedirect(org.apache.tapestry5.http.Link)
.Returns the redirect URL.Allows access to the rendered document.int
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.Methods inherited from interface org.apache.tapestry5.http.services.Response
addHeader, disableCompression, encodeRedirectURL, encodeURL, getOutputStream, getPrintWriter, isCommitted, sendError, sendRedirect, sendRedirect, setContentLength, setDateHeader, setHeader, setIntHeader, setStatus
-
Method Details
-
setRenderedDocument
Invoked as part of the rendering pipeline to store the final rendered Document object. -
getRenderedDocument
Allows access to the rendered document. -
getRedirectLink
Returns the link redirected to viaResponse.sendRedirect(org.apache.tapestry5.http.Link)
. -
clear
void clear()Clears internal state, in preparation for the next test. -
getHeader
Returns the named header.- Since:
- 5.2.3
-
getHeaders
Returns the values of a named header.- Since:
- 5.4
-
getRedirectURL
Returns the redirect URL.- Since:
- 5.2.3
-
getStatus
int getStatus()Returns the status code for this response.- Since:
- 5.2.3
-
getErrorMessage
Returns the error message, if available.- Since:
- 5.2.3
-
getContentType
Returns the the MIME content type for the output.- Since:
- 5.2.3
-
getOutput
Returns the content of theServletOutputStream
as string.- Since:
- 5.2.3
-