FileDocCategorySizeDatePackage
JVMAction.javaAPI DocApache Struts 2.0.9 Apps3031Mon Jul 23 13:43:26 BST 2007org.apache.struts2.showcase.xslt

JVMAction

public class JVMAction extends Object implements org.apache.struts2.interceptor.ServletRequestAware

Fields Summary
private ImportantInfo
info
private Map
environment
private HttpServletRequest
servletRequest
Captured only to show that undesired data can creep into the result.
Constructors Summary
Methods Summary
public java.lang.Stringexecute()

        environment = System.getenv();
        Properties props = System.getProperties();

        String classpath = environment.get("CLASSPATH");
        info = new ImportantInfo(classpath, props);

        return ActionSupport.SUCCESS;
    
public java.util.MapgetEnvironment()

        return environment;
    
public org.apache.struts2.showcase.xslt.JVMAction$ImportantInfogetInfo()

        return info;
    
public javax.servlet.http.HttpServletRequestgetServletRequest()

        return servletRequest;
    
public voidsetEnvironment(java.util.Map environment)

        this.environment = environment;
    
public voidsetInfo(org.apache.struts2.showcase.xslt.JVMAction$ImportantInfo info)

        this.info = info;
    
public voidsetServletRequest(javax.servlet.http.HttpServletRequest servletRequest)

        this.servletRequest = servletRequest;