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.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 theServletOutputStream
as string.Link
getRedirectLink()
Returns the link redirected to viaResponse.sendRedirect(org.apache.tapestry5.http.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.-
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.
-
getHeaders
List<?> getHeaders(String name)
Returns the values of a named header.- Since:
- 5.4
-
getRedirectURL
String getRedirectURL()
Returns the redirect URL.- Since:
- 5.2.3
-
getStatus
int getStatus()
Returns the status code for this response.- Since:
- 5.2.3
-
getErrorMessage
String getErrorMessage()
Returns the error message, if available.- Since:
- 5.2.3
-
getContentType
String getContentType()
Returns the the MIME content type for the output.- Since:
- 5.2.3
-
getOutput
String getOutput()
Returns the content of theServletOutputStream
as string.- Since:
- 5.2.3
-
-