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