Save This Page
Home » struts-2.1.8.1-src » org.apache » struts2 » s1 » [javadoc | source]
org.apache.struts2.s1
public class: Struts1Factory [javadoc | source]
java.lang.Object
   org.apache.struts2.s1.Struts1Factory
Provides conversion methods between the Struts Action 1.x and XWork classes.
Constructor:
 public Struts1Factory(Configuration config) 
Method from org.apache.struts2.s1.Struts1Factory Summary:
convertErrors,   createActionForward,   createActionMapping,   createActionMapping,   createExceptionConfig,   createModuleConfig
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.s1.Struts1Factory Detail:
 public  void convertErrors(ActionErrors errors,
    Object action) 
 public ActionForward createActionForward(ResultConfig cfg) 
    Create a Struts 1.x ActionForward from an XWork ResultConfig.
 public ActionMapping createActionMapping(ActionConfig cfg) 
    Create a Struts 1.x ActionMapping from an XWork ActionConfig.
 ActionMapping createActionMapping(ActionConfig cfg,
    String actionPath,
    ModuleConfig moduleConfig) 
    Create a Struts 1.x ActionMapping from an XWork ActionConfig. This version provides an existing action path and ModuleConfig. Package-protected for now; may not need to be exposed publicly.
 public ExceptionConfig createExceptionConfig(ExceptionMappingConfig cfg) 
    Create a Struts 1.x ExceptionConfig from an XWork ExceptionMappingConfig.
 public ModuleConfig createModuleConfig(String packageName) 
    Create a Struts 1.x ModuleConfig based on an XWork package configuration.