Package org.apache.tapestry5.services
Interface ResponseRenderer
- All Known Implementing Classes:
ResponseRendererImpl
public interface ResponseRenderer
Public facade around internal services related to rendering a markup response.
-
Method Summary
Modifier and TypeMethodDescriptionfindContentType
(Object component) Finds the content type for the page containing the indicated component.void
renderPageMarkupResponse
(String pageName) Renders a markup response by rendering the named page.
-
Method Details
-
renderPageMarkupResponse
Renders a markup response by rendering the named page.- Parameters:
pageName
- logical name of page to provide the markup- Throws:
IOException
-
findContentType
Finds the content type for the page containing the indicated component.- Parameters:
component
- a component within a page- Returns:
- the content type
- Throws:
IllegalArgumentException
- if the component parameter is not a component
-