org.apache.struts2.showcase.source
Class ViewSourceAction
java.lang.Object
com.opensymphony.xwork2.ActionSupport
org.apache.struts2.showcase.source.ViewSourceAction
- All Implemented Interfaces:
- Action, LocaleProvider, TextProvider, Validateable, ValidationAware, java.io.Serializable, ServletContextAware
public class ViewSourceAction
- extends ActionSupport
- implements ServletContextAware
Processes configuration, page, and action class paths to create snippets
of the files for display.
- See Also:
- Serialized Form
| 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, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewSourceAction
public ViewSourceAction()
execute
public java.lang.String execute()
throws java.net.MalformedURLException,
java.io.IOException
- Specified by:
execute in interface Action- Overrides:
execute in class ActionSupport
- Throws:
java.net.MalformedURLException
java.io.IOException
setClassName
public void setClassName(java.lang.String className)
- Parameters:
className - the className to set
setConfig
public void setConfig(java.lang.String config)
- Parameters:
config - the config to set
setPage
public void setPage(java.lang.String page)
- Parameters:
page - the page to set
setPadding
public void setPadding(int padding)
- Parameters:
padding - the padding to set
getClassLines
public java.util.List getClassLines()
- Returns:
- the classLines
getConfigLines
public java.util.List getConfigLines()
- Returns:
- the configLines
getPageLines
public java.util.List getPageLines()
- Returns:
- the pageLines
getClassName
public java.lang.String getClassName()
- Returns:
- the className
getConfig
public java.lang.String getConfig()
- Returns:
- the config
getPage
public java.lang.String getPage()
- Returns:
- the page
getConfigLine
public int getConfigLine()
- Returns:
- the configLine
getPadding
public int getPadding()
- Returns:
- the padding
setServletContext
public void setServletContext(javax.servlet.ServletContext arg0)
- Specified by:
setServletContext in interface ServletContextAware
Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.