|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts2.s1.Struts1Factory
public class Struts1Factory
Provides conversion methods between the Struts Action 1.x and XWork classes.
Constructor Summary | |
---|---|
Struts1Factory(Configuration config)
|
Method Summary | |
---|---|
void |
convertErrors(org.apache.struts.action.ActionErrors errors,
Object action)
|
org.apache.struts.action.ActionForward |
createActionForward(com.opensymphony.xwork2.config.entities.ResultConfig cfg)
Create a Struts 1.x ActionForward from an XWork ResultConfig. |
org.apache.struts.action.ActionMapping |
createActionMapping(com.opensymphony.xwork2.config.entities.ActionConfig cfg)
Create a Struts 1.x ActionMapping from an XWork ActionConfig. |
org.apache.struts.config.ExceptionConfig |
createExceptionConfig(com.opensymphony.xwork2.config.entities.ExceptionMappingConfig cfg)
Create a Struts 1.x ExceptionConfig from an XWork ExceptionMappingConfig. |
org.apache.struts.config.ModuleConfig |
createModuleConfig(String packageName)
Create a Struts 1.x ModuleConfig based on an XWork package configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Struts1Factory(Configuration config)
Method Detail |
---|
public org.apache.struts.config.ModuleConfig createModuleConfig(String packageName)
packageName
- the name of the XWork package configuration to wrap. This becomes the module prefix for the
newly-created ModuleConfig.
public org.apache.struts.action.ActionMapping createActionMapping(com.opensymphony.xwork2.config.entities.ActionConfig cfg)
cfg
- the XWork ActionConfig.
public org.apache.struts.action.ActionForward createActionForward(com.opensymphony.xwork2.config.entities.ResultConfig cfg)
cfg
- the XWork ResultConfig.
public org.apache.struts.config.ExceptionConfig createExceptionConfig(com.opensymphony.xwork2.config.entities.ExceptionMappingConfig cfg)
cfg
- the XWork ExceptionMappingConfig.
public void convertErrors(org.apache.struts.action.ActionErrors errors, Object action)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |