Package org.zkoss.web.servlet.dsp.action
Class Page
java.lang.Object
org.zkoss.web.servlet.dsp.action.AbstractAction
org.zkoss.web.servlet.dsp.action.Page
- All Implemented Interfaces:
Action
The page action used to set the page info, such as the content type.
- Author:
- tomyeh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the content type.voidrender(ActionContext ac, boolean nested) Processes the action and renders the output toActionContext.getOut().voidsetContentType(String ctype) Sets the content type.voidsetOptionalContentType(String ctype) Sets the optional content type.toString()Methods inherited from class org.zkoss.web.servlet.dsp.action.AbstractAction
append, append, append, getIf, getUnless, isEffective, setIf, setUnless, toScope
-
Constructor Details
-
Page
public Page()
-
-
Method Details
-
getContentType
Returns the content type. -
setContentType
Sets the content type. -
setOptionalContentType
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
Description copied from interface:ActionProcesses the action and renders the output toActionContext.getOut().nested- whether there is any nested content.- Throws:
DspExceptionIOException
-
toString
-