public class PageDefinition extends Object implements Serializable
Constructor and Description |
---|
PageDefinition(String path,
Class<? extends Page> pageBeanClass)
Constructs a page definition
|
PageDefinition(String path,
Class<? extends Page> pageBeanClass,
PageDefinition parent)
Constructs a page definition
|
PageDefinition(String path,
Class<? extends Page> pageBeanClass,
PageDefinition parent,
String pageBeanName)
Constructs a page definition
|
PageDefinition(String path,
Class<? extends Page> pageBeanClass,
String pageBeanName)
Constructs a page definition
|
Modifier and Type | Method and Description |
---|---|
static String |
decodeActionParam(String param) |
String |
getFileExtension() |
PageOutcome |
getOutcome() |
PageOutcome |
getOutcome(String action) |
Class<? extends Page> |
getPageBeanClass() |
String |
getPageBeanName() |
protected String |
getPageBeanNameFromPath(String path,
String extension) |
PageDefinition |
getParent() |
String |
getPath() |
PageOutcome |
getRedirect() |
PageOutcome |
getRedirect(String action) |
PageOutcome |
getRedirectWithViewParams() |
PageOutcome |
getRedirectWithViewParams(String action) |
String |
toString() |
public PageDefinition(String path, Class<? extends Page> pageBeanClass, PageDefinition parent, String pageBeanName)
path
- the path of the view associated with this pagepageBeanClass
- the page bean class associated with this pageparent
- the parent page (if any). May be nullpageBeanName
- the page bean name. If null this will be calculated from the pathpublic PageDefinition(String path, Class<? extends Page> pageBeanClass, String pageBeanName)
path
- the path of the view associated with this pagepageBeanClass
- the page bean class associated with this pagepageBeanName
- the page bean name. If null this will be calculated from the pathpublic PageDefinition(String path, Class<? extends Page> pageBeanClass, PageDefinition parent)
path
- the path of the view associated with this pagepageBeanClass
- the page bean class associated with this pageparent
- the parent page (if any). May be nullpublic String getPath()
public String getFileExtension()
public String getPageBeanName()
public PageDefinition getParent()
public PageOutcome getOutcome()
public PageOutcome getOutcome(String action)
public PageOutcome getRedirect()
public PageOutcome getRedirect(String action)
public PageOutcome getRedirectWithViewParams()
public PageOutcome getRedirectWithViewParams(String action)
Copyright © 2008–2015 Apache Software Foundation. All rights reserved.