org.apache.struts2.showcase.source
Class ViewSourceAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.apache.struts2.showcase.source.ViewSourceAction
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable, ServletContextAware

public class ViewSourceAction
extends com.opensymphony.xwork2.ActionSupport
implements ServletContextAware

Processes configuration, page, and action class paths to create snippets of the files for display.

See Also:
Serialized Form

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
 String execute()
           
 List getClassLines()
           
 String getClassName()
           
 String getConfig()
           
 int getConfigLine()
           
 List getConfigLines()
           
 int getPadding()
           
 String getPage()
           
 List getPageLines()
           
 void setClassName(String className)
           
 void setConfig(String config)
           
 void setPadding(int padding)
           
 void setPage(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, 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
 

Constructor Detail

ViewSourceAction

public ViewSourceAction()
Method Detail

execute

public String execute()
               throws MalformedURLException,
                      IOException
Specified by:
execute in interface com.opensymphony.xwork2.Action
Overrides:
execute in class com.opensymphony.xwork2.ActionSupport
Throws:
MalformedURLException
IOException

setClassName

public void setClassName(String className)
Parameters:
className - the className to set

setConfig

public void setConfig(String config)
Parameters:
config - the config to set

setPage

public void setPage(String page)
Parameters:
page - the page to set

setPadding

public void setPadding(int padding)
Parameters:
padding - the padding to set

getClassLines

public List getClassLines()
Returns:
the classLines

getConfigLines

public List getConfigLines()
Returns:
the configLines

getPageLines

public List getPageLines()
Returns:
the pageLines

getClassName

public String getClassName()
Returns:
the className

getConfig

public String getConfig()
Returns:
the config

getPage

public 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-2012 Apache Software Foundation. All Rights Reserved.