Interface TestableResponse

    • Method Detail

      • setRenderedDocument

        void setRenderedDocument​(Document document)
        Invoked as part of the rendering pipeline to store the final rendered Document object.
      • 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 the ServletOutputStream as string.
        Since:
        5.2.3