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, java.io.Serializable, org.apache.struts2.util.ServletContextAware

public class ViewSourceAction
extends com.opensymphony.xwork2.ActionSupport
implements org.apache.struts2.util.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
 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

ViewSourceAction

public ViewSourceAction()
Method Detail

execute

public java.lang.String execute()
                         throws java.net.MalformedURLException,
                                java.io.IOException
Specified by:
execute in interface com.opensymphony.xwork2.Action
Overrides:
execute in class com.opensymphony.xwork2.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 org.apache.struts2.util.ServletContextAware


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.