public class ActionView extends Object
| Constructor and Description |
|---|
ActionView(String actionResult,
Configuration configuration)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLayoutName()
Returns the layout name in short format (can be null)
e.g. : "mylayout" |
String |
getLayoutPath()
Returns the layout path in the current web-app (can be null)
e.g. : "/WEB-INF/layouts/mylayout.jsp" |
String |
getOriginalResult()
Returns original result (never null)
e.g. : "mypage" or "mypage : mylayout" |
String |
getPageName()
Returns the page name in short format (never null)
e.g. : "mypage" |
String |
getPagePath()
Returns the page path in the current web-app (never null)
e.g. : "/WEB-INF/views/mypage.jsp" |
String |
getViewName()
Returns the view name ( page name or layout name if any )
e.g. : "mypage" or "mylayout" |
String |
getViewPath()
Returns the view path ( page path or layout path if any )
e.g. : "/WEB-INF/views/mypage.jsp" or "/WEB-INF/layouts/mylayout.jsp" |
boolean |
hasLayout()
Returns true if the action result has a layout
|
public ActionView(String actionResult, Configuration configuration)
actionResult - actionResult string : 'view' or 'view:layout'configuration - public String getOriginalResult()
public String getPageName()
public String getPagePath()
public String getLayoutName()
public String getLayoutPath()
public boolean hasLayout()
public String getViewName()
public String getViewPath()
Copyright © 2016. All rights reserved.