|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectStrutsElementSupport
StrutsApp
public class StrutsApp
Nested Class Summary | |
---|---|
protected static class |
StrutsApp.ActionMappingComparator
|
Field Summary | |
---|---|
protected static String |
DUPLICATE_ACTION_COMMENT
|
protected static String |
NETUI_VALIDATOR_RULES_URI
|
protected static String |
PAGEFLOW_CONTROLLER_CONFIG_CLASSNAME
|
protected static String |
PAGEFLOW_REQUESTPROCESSOR_CLASSNAME
|
protected static String |
STRUTS_CONFIG_EXTENSION
|
protected static String |
STRUTS_CONFIG_PREFIX
|
protected static char |
STRUTS_CONFIG_SEPARATOR
|
protected static String |
STRUTS_VALIDATOR_RULES_URI
|
protected static String |
STRUTSCONFIG_OUTPUT_DIR
|
protected static String |
TILES_DEFINITIONS_CONFIG_PROPERTY
|
protected static String |
TILES_MODULE_AWARE_PROPERTY
|
protected static String |
TILES_PLUG_IN_CLASSNAME
|
protected static String |
VALIDATOR_PATHNAMES_PROPERTY
|
protected static String |
VALIDATOR_PLUG_IN_CLASSNAME
|
protected static String |
WEBINF_DIR_NAME
|
Constructor Summary | |
---|---|
StrutsApp(String controllerClassName)
|
Method Summary | |
---|---|
void |
addActionMapping(ActionModel mapping)
Adds a new ActionMapping to this StrutsApp. |
void |
addException(ExceptionModel c)
Implemented for ExceptionContainer . |
void |
addFormBean(FormBeanModel newFormBean)
Adds a new form bean to this StrutsApp. |
void |
addForward(ForwardModel newActionForward)
Implemented for ForwardContainer . |
void |
addMessageResources(MessageResourcesModel mr)
|
protected ForwardDocument.Forward |
addNewForward(XmlObject xmlObject)
|
protected static void |
addSetProperty(ControllerDocument.Controller controller,
String propName,
String propValue)
|
void |
deleteFormBean(FormBeanModel formBean)
Delete the given form-bean. |
void |
deleteForward(ForwardModel forward)
|
ForwardModel |
findForward(String forwardName)
|
String |
getBeanType(ActionModel actionMapping)
|
MessageResourcesModel |
getDefaultMessageResources()
Get the MessageResourcesModel for which no "key" is set (the default one used at runtime). |
protected List |
getExceptionCatchesList()
|
FormBeanModel |
getFormBean(String formBeanName)
|
FormBeanModel |
getFormBeanByActualType(String actualTypeName,
boolean usesPageFlowScopedFormBean)
|
FormBeanModel[] |
getFormBeans()
Returns all of the form beans that are defined for this StrutsApp. |
List<FormBeanModel> |
getFormBeansAsList()
Returns a list of all the form beans that are defined for this StrutsApp. |
protected Map |
getFormBeansMap()
|
String |
getFormNameForType(String formType,
boolean isPageFlowScoped)
|
protected String |
getFormQualifiedActionPath(ActionModel action)
|
ForwardModel[] |
getForwards()
|
List |
getForwardsAsList()
|
protected String |
getHeaderComment(File mergeFile)
|
protected List<MessageResourcesModel> |
getMessageResourcesList()
|
String |
getMultipartHandlerClassName()
|
static String |
getOutputFileURI(String filePrefix,
String containingPackage,
boolean isSharedFlow)
|
protected List<ActionModel> |
getSortedActionMappings()
|
protected static String |
getStrutsConfigURI(String containingPackage,
boolean isSharedFlow)
|
static File |
getWebappRootFromJpf(File jpf)
|
boolean |
isReturnToActionDisabled()
|
boolean |
isReturnToPageDisabled()
|
protected boolean |
isSharedFlow()
|
protected static String |
makeFullyQualifiedBeanName(String formType)
|
void |
setAdditionalValidatorConfigs(List<String> additionalValidatorConfigs)
|
void |
setLongLivedPageFlow(boolean longLivedPageFlow)
|
protected void |
setMultipartHandlerClassName(String multipartHandlerClassName)
|
void |
setNestedPageFlow(boolean nestedPageFlow)
|
void |
setReturnToActionDisabled(boolean disabled)
|
void |
setReturnToPageDisabled(boolean disabled)
|
protected void |
setSharedFlow(boolean sharedFlow)
|
protected void |
setSharedFlows(Map<String,String> sharedFlows)
|
void |
setTilesDefinitionsConfigs(List<String> tilesDefinitionsConfigs)
|
void |
setValidationModel(ValidationModel validationModel)
|
protected void |
writeControllerElement(StrutsConfigDocument.StrutsConfig scElement)
|
void |
writeForwards(ForwardDocument.Forward[] existingForwards,
XmlObject xmlForwardContainer)
|
protected void |
writeTilesInit(StrutsConfigDocument.StrutsConfig scElement)
|
protected void |
writeValidatorInit(StrutsConfigDocument.StrutsConfig scElement)
|
void |
writeXml(PrintStream outputStream,
File mergeFile,
File webappRoot)
|
Methods inherited from class StrutsElementSupport |
---|
addComment, getAttr, getAttrBool, getClassName, getComment, getDescription, getDisplayName, getIcon, getParentApp, getProperty, setClassName, setComment, setDescription, setDisplayName, setIcon, setParentApp, setProperty |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ForwardContainer |
---|
addForward, findForward |
Field Detail |
---|
protected static final String DUPLICATE_ACTION_COMMENT
protected static final String PAGEFLOW_REQUESTPROCESSOR_CLASSNAME
protected static final String PAGEFLOW_CONTROLLER_CONFIG_CLASSNAME
protected static final String STRUTS_CONFIG_PREFIX
protected static final String STRUTS_CONFIG_EXTENSION
protected static final char STRUTS_CONFIG_SEPARATOR
protected static final String WEBINF_DIR_NAME
protected static final String STRUTSCONFIG_OUTPUT_DIR
protected static final String VALIDATOR_PLUG_IN_CLASSNAME
protected static final String VALIDATOR_PATHNAMES_PROPERTY
protected static final String TILES_PLUG_IN_CLASSNAME
protected static final String TILES_DEFINITIONS_CONFIG_PROPERTY
protected static final String TILES_MODULE_AWARE_PROPERTY
protected static final String NETUI_VALIDATOR_RULES_URI
protected static final String STRUTS_VALIDATOR_RULES_URI
Constructor Detail |
---|
public StrutsApp(String controllerClassName)
Method Detail |
---|
public void addMessageResources(MessageResourcesModel mr)
public void addActionMapping(ActionModel mapping)
public String getBeanType(ActionModel actionMapping)
protected String getFormQualifiedActionPath(ActionModel action)
public void addException(ExceptionModel c)
ExceptionContainer
.
addException
in interface ExceptionContainer
public FormBeanModel[] getFormBeans()
public List<FormBeanModel> getFormBeansAsList()
public FormBeanModel getFormBean(String formBeanName)
public FormBeanModel getFormBeanByActualType(String actualTypeName, boolean usesPageFlowScopedFormBean)
public void addFormBean(FormBeanModel newFormBean)
public void deleteFormBean(FormBeanModel formBean)
public static File getWebappRootFromJpf(File jpf) throws NoWebInfDirectoryException
NoWebInfDirectoryException
public String getFormNameForType(String formType, boolean isPageFlowScoped)
protected static String makeFullyQualifiedBeanName(String formType)
protected ForwardDocument.Forward addNewForward(XmlObject xmlObject)
protected Map getFormBeansMap()
protected List getExceptionCatchesList()
protected List<ActionModel> getSortedActionMappings()
protected List<MessageResourcesModel> getMessageResourcesList()
public MessageResourcesModel getDefaultMessageResources()
public boolean isReturnToPageDisabled()
public boolean isReturnToActionDisabled()
public void setReturnToPageDisabled(boolean disabled)
public void setReturnToActionDisabled(boolean disabled)
public void setAdditionalValidatorConfigs(List<String> additionalValidatorConfigs)
public void setValidationModel(ValidationModel validationModel)
public void writeXml(PrintStream outputStream, File mergeFile, File webappRoot) throws IOException, XmlException, NoWebInfDirectoryException
IOException
XmlException
NoWebInfDirectoryException
protected void writeControllerElement(StrutsConfigDocument.StrutsConfig scElement)
protected static void addSetProperty(ControllerDocument.Controller controller, String propName, String propValue)
protected void writeValidatorInit(StrutsConfigDocument.StrutsConfig scElement)
protected void writeTilesInit(StrutsConfigDocument.StrutsConfig scElement)
protected String getHeaderComment(File mergeFile)
public void setNestedPageFlow(boolean nestedPageFlow)
public void setLongLivedPageFlow(boolean longLivedPageFlow)
protected static String getStrutsConfigURI(String containingPackage, boolean isSharedFlow)
public static String getOutputFileURI(String filePrefix, String containingPackage, boolean isSharedFlow)
protected void setSharedFlow(boolean sharedFlow)
protected void setSharedFlows(Map<String,String> sharedFlows)
public String getMultipartHandlerClassName()
protected void setMultipartHandlerClassName(String multipartHandlerClassName)
public void setTilesDefinitionsConfigs(List<String> tilesDefinitionsConfigs)
protected boolean isSharedFlow()
public void addForward(ForwardModel newActionForward)
ForwardContainer
.
addForward
in interface ForwardContainer
public ForwardModel findForward(String forwardName)
findForward
in interface ForwardContainer
public void writeForwards(ForwardDocument.Forward[] existingForwards, XmlObject xmlForwardContainer)
public ForwardModel[] getForwards()
public List getForwardsAsList()
public void deleteForward(ForwardModel forward)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |