ZMObject
|
+--ZMView
|
+--ZMRedirectView
public class ZMRedirectView
extends ZMView
| Constructor Summary | |
|---|---|
ZMRedirectView(string page, boolean secure) Create a new redirect view. |
|
| Method Summary | |
|---|---|
| void | generate() Generate view response. |
| boolean | isValid() Check if this view is valid. |
| void | setParameter(string parameter) Set additional parameter. |
| void | setSecure(boolean secure) Set secure flag. |
| void | setUrl(string url) Set a url. |
| Methods inherited from org.zenmagick.rp.ZMView | |
|---|---|
| callView, generate, getController, getMappingId, getName, getViewFilename, isValid, isViewFunction, setController, setMappingId, setName | |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| create | |
public ZMRedirectView(string page, boolean secure)
Create a new redirect view.
false.public void generate()
Generate view response. /
public boolean isValid()
Check if this view is valid.
true if the redirect url is not empty.public void setParameter(string parameter)
Set additional parameter.
public void setSecure(boolean secure)
Set secure flag.
true to create a secure redirect.public void setUrl(string url)
Set a url.
Setting a url will override the page property. The URL will be used as is.
Redirect view.