Interface TestableResponse
-
- All Superinterfaces:
Response
- All Known Implementing Classes:
TestableResponseImpl
public interface TestableResponse extends Response
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clears internal state, in preparation for the next test.getContentType()
Returns the the MIME content type for the output.getErrorMessage()
Returns the error message, if available.name)
Returns the named header.<?>
name)
Returns the values of a named header.getOutput()
Returns the content of the as string.Link
getRedirectLink()
Returns the link redirected to viaResponse.sendRedirect(org.apache.tapestry5.http.Link)
.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.-
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 Detail
-
setRenderedDocument
void setRenderedDocument(Document document)
Invoked as part of the rendering pipeline to store the final rendered Document object.
-
getRenderedDocument
Document getRenderedDocument()
Allows access to the rendered document.
-
getRedirectLink
Link 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
name)
Returns the named header.- Since:
- 5.2.3
-
getHeaders
<?> name)
Returns the values of a named header.- Since:
- 5.4
-
getRedirectURL
getRedirectURL()
Returns the redirect URL.- Since:
- 5.2.3
-
getStatus
int getStatus()
Returns the status code for this response.- Since:
- 5.2.3
-
getErrorMessage
getErrorMessage()
Returns the error message, if available.- Since:
- 5.2.3
-
getContentType
getContentType()
Returns the the MIME content type for the output.- Since:
- 5.2.3
-
getOutput
getOutput()
Returns the content of the as string.- Since:
- 5.2.3
-
-