org.apache.tapestry5.internal.test
Interface TestableResponse

All Superinterfaces:
Response
All Known Implementing Classes:
TestableResponseImpl

public interface TestableResponse
extends Response


Method Summary
 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.
 String getOutput()
          Returns the content of the ServletOutputStream as string.
 Link getRedirectLink()
          Returns the link redirected to via Response.sendRedirect(org.apache.tapestry5.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.services.Response
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 via Response.sendRedirect(org.apache.tapestry5.Link).


clear

void clear()
Clears internal state, in preparation for the next test.


getHeader

Object getHeader(String name)
Returns the named header.

Since:
5.2.3

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 the ServletOutputStream as string.

Since:
5.2.3


Copyright © 2003-2012 The Apache Software Foundation.