|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.ActionSupport
org.apache.struts2.showcase.source.ViewSourceAction
public class ViewSourceAction
Processes configuration, page, and action class paths to create snippets of the files for display.
| Field Summary |
|---|
| Fields inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
LOG |
| Fields inherited from interface com.opensymphony.xwork2.Action |
|---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Constructor Summary | |
|---|---|
ViewSourceAction()
|
|
| Method Summary | |
|---|---|
java.lang.String |
execute()
|
java.util.List |
getClassLines()
|
java.lang.String |
getClassName()
|
java.lang.String |
getConfig()
|
int |
getConfigLine()
|
java.util.List |
getConfigLines()
|
int |
getPadding()
|
java.lang.String |
getPage()
|
java.util.List |
getPageLines()
|
void |
setClassName(java.lang.String className)
|
void |
setConfig(java.lang.String config)
|
void |
setPadding(int padding)
|
void |
setPage(java.lang.String page)
|
void |
setServletContext(javax.servlet.ServletContext arg0)
|
| Methods inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewSourceAction()
| Method Detail |
|---|
public java.lang.String execute()
throws java.net.MalformedURLException,
java.io.IOException
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportjava.net.MalformedURLException
java.io.IOExceptionpublic void setClassName(java.lang.String className)
className - the className to setpublic void setConfig(java.lang.String config)
config - the config to setpublic void setPage(java.lang.String page)
page - the page to setpublic void setPadding(int padding)
padding - the padding to setpublic java.util.List getClassLines()
public java.util.List getConfigLines()
public java.util.List getPageLines()
public java.lang.String getClassName()
public java.lang.String getConfig()
public java.lang.String getPage()
public int getConfigLine()
public int getPadding()
public void setServletContext(javax.servlet.ServletContext arg0)
setServletContext in interface org.apache.struts2.util.ServletContextAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||