public class PageController extends Object implements SiteNodeController
| Modifier and Type | Field and Description |
|---|---|
protected List |
arguments |
protected Map |
argumentsMap |
protected List |
attributes |
protected HashMap |
attributesMap |
protected Config |
config |
protected long |
menuId |
protected Map |
properties |
protected boolean |
secure |
protected String |
title |
| Constructor and Description |
|---|
PageController() |
PageController(Config config,
String name) |
PageController(PageController page) |
| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(Argument argument) |
void |
addField(Attribute attribute) |
void |
addMenu(Menu menu) |
void |
addProperty(String name,
String value) |
Object |
clone() |
boolean |
equals(Object o) |
void |
forward(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String path)
Forward the request to the specified resource.
|
String |
getAbsolutePath() |
Collection |
getActions() |
List |
getArguments() |
Config |
getConfig() |
List |
getFields() |
String |
getFullPath() |
String |
getFullUrl() |
String |
getFullUrl(Map parameters) |
Layout |
getLayout() |
Menu |
getMenu(String name) |
long |
getMenuId() |
Collection |
getMenuList() |
Map |
getMenus() |
SiteNode |
getNode() |
Collection |
getNodes() |
String |
getPath() |
String |
getProperty(String name) |
Collection |
getScripts() |
Collection |
getStyles() |
String |
getTitle() |
boolean |
hasArgument(String name) |
boolean |
hasAttribute(String name) |
int |
hashCode()
Generate the hash code for the object.
|
void |
invokeActions(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
boolean |
isSecure() |
void |
process(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setActions(Collection actions) |
void |
setConfig(Config config) |
void |
setLayout(Layout layout) |
void |
setMenuId(long menuId) |
void |
setMenuList(Collection menus) |
void |
setMenus(Map menus) |
void |
setNode(SiteNode node) |
void |
setNodes(Collection nodes) |
void |
setPath(String path) |
void |
setScripts(Collection scripts) |
void |
setSecure(boolean secure) |
void |
setStyles(Collection styles) |
void |
setTitle(String title) |
protected List arguments
protected Config config
protected long menuId
protected String title
protected Map properties
protected Map argumentsMap
protected HashMap attributesMap
protected List attributes
protected boolean secure
public PageController()
public PageController(PageController page)
public void addArgument(Argument argument)
public void addField(Attribute attribute)
public void addMenu(Menu menu)
public Object clone()
clone in interface SiteNodeControllerclone in class Objectpublic void forward(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String path)
throws javax.servlet.ServletException,
IOException
servletContext - The servlet context.request - the parameters of the client requestresponse - the response sent back to the clientpath - the path to the resource to forward tojavax.servlet.ServletException - if there was a problem handling the requestIOException - if an input output error occurs when handling the
requestpublic String getAbsolutePath()
public Collection getActions()
public List getArguments()
public Config getConfig()
public List getFields()
public String getFullPath()
public String getFullUrl()
public Layout getLayout()
public long getMenuId()
public Collection getMenuList()
public Map getMenus()
public SiteNode getNode()
getNode in interface SiteNodeControllerpublic Collection getNodes()
public String getPath()
getPath in interface SiteNodeControllerpublic Collection getScripts()
public Collection getStyles()
public String getTitle()
public boolean hasArgument(String name)
public boolean hasAttribute(String name)
public int hashCode()
public void invokeActions(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic final boolean isSecure()
public void process(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
process in interface SiteNodeControllerIOExceptionjavax.servlet.ServletExceptionpublic void setActions(Collection actions)
actions - The actions to set.public void setConfig(Config config)
config - The config to set.public void setLayout(Layout layout)
public void setMenuId(long menuId)
public void setMenuList(Collection menus)
public void setMenus(Map menus)
menus - The menus to set.public void setNode(SiteNode node)
setNode in interface SiteNodeControllernode - The node to set.public void setNodes(Collection nodes)
public void setPath(String path)
public void setScripts(Collection scripts)
scripts - The scripts to set.public final void setSecure(boolean secure)
public void setStyles(Collection styles)
styles - The styles to set.public void setTitle(String title)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.