Class Page

All Implemented Interfaces:
Action

public class Page extends AbstractAction
The page action used to set the page info, such as the content type.
Author:
tomyeh
  • Constructor Details

    • Page

      public Page()
  • Method Details

    • getContentType

      public String getContentType()
      Returns the content type.
    • setContentType

      public void setContentType(String ctype)
      Sets the content type.
    • setOptionalContentType

      public void setOptionalContentType(String ctype)
      Sets the optional content type. It is the content type generated automatically. We will ignore it if the page is included.
      Since:
      3.0.6
    • render

      public void render(ActionContext ac, boolean nested) throws DspException, IOException
      Description copied from interface: Action
      Processes the action and renders the output to ActionContext.getOut().
      nested - whether there is any nested content.
      Throws:
      DspException
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object