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
public class Page extends AbstractAction
The page action used to set the page info, such as the content type.- Author:
- tomyeh
-
-
Constructor Summary
Constructors Constructor Description Page()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContentType()Returns the content type.voidrender(ActionContext ac, boolean nested)Processes the action and renders the output toActionContext.getOut().voidsetContentType(java.lang.String ctype)Sets the content type.voidsetOptionalContentType(java.lang.String ctype)Sets the optional content type.java.lang.StringtoString()-
Methods inherited from class org.zkoss.web.servlet.dsp.action.AbstractAction
append, append, append, getIf, getUnless, isEffective, setIf, setUnless, toScope
-
-
-
-
Method Detail
-
getContentType
public java.lang.String getContentType()
Returns the content type.
-
setContentType
public void setContentType(java.lang.String ctype)
Sets the content type.
-
setOptionalContentType
public void setOptionalContentType(java.lang.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, java.io.IOException
Description copied from interface:ActionProcesses the action and renders the output toActionContext.getOut().nested- whether there is any nested content.- Throws:
DspExceptionjava.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-