Interface Page

All Known Subinterfaces:
StreamablePage
All Known Implementing Classes:
ActionPage, HTMLPage, HTMLTree, JSONPage, VelocityPage, XHTMLPage

public interface Page
Interface for pages returned by methods called from Dispatcher.
  • Method Details

    • show

      String show()
      Called from the Dispatcher. Returns a String representation suitable for viewing in the browser (HTML, XHTML, plain text, etc.)
    • getContentType

      String getContentType()
      Returns the content type of the page, for example "text/html".
      Returns:
      the contents mime type as String
    • getHeaders

      List<Pair<String,Object>> getHeaders()
      Returns the list of http-response-headers to be set on the HttpServletResponse
      Returns:
      the http-headers (the value may be one of String, Date or Integer