|
|||||||||
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 |
DEFAULT_VALIDATOR_RULES_URI
|
protected static String |
DUPLICATE_ACTION_COMMENT
|
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 |
STRUTSCONFIG_OUTPUT_DIR
|
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 newActionMapping)
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)
|
protected ActionModel |
createActionModel(ActionModel src,
String newPath)
|
void |
deleteActionMapping(ActionModel actionMapping)
Deletes the given ActionModel. |
void |
deleteFormBean(FormBeanModel formBean)
Delete the given form-bean. |
void |
deleteForward(ForwardModel forward)
|
ForwardModel |
findForward(String forwardName)
|
ActionModel[] |
getActionMappings()
Returns all of the action mappings that are defined for this StrutsApp. |
List |
getActionMappingsAsList()
Returns all of the action mappings that are defined for this StrutsApp as a list that is a clone of this StrutsApp's internal list. |
protected List |
getActionMappingsList()
|
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)
|
FormBeanModel[] |
getFormBeans()
Returns all of the form beans that are defined for this StrutsApp. |
List |
getFormBeansAsList()
Returns a list of all the form beans that are defined for this StrutsApp. |
protected Map |
getFormBeansMap()
|
String |
getFormNameForType(String formType)
|
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 static String |
getStrutsConfigURI(String containingPackage,
boolean isSharedFlow)
|
static File |
getWebappRootFromJpf(File jpf)
|
boolean |
isReturnToActionDisabled()
|
boolean |
isReturnToPageDisabled()
|
protected static String |
makeFullyQualifiedBeanName(String formType)
|
protected void |
setMultipartHandlerClassName(String multipartHandlerClassName)
|
void |
setNestedPageFlow(boolean nestedPageFlow)
|
protected void |
setSharedFlow(boolean sharedFlow)
|
protected void |
setSharedFlowTypeNames(List<String> sharedFlowTypeNames)
|
void |
setSingletonPageFlow(boolean singletonPageFlow)
|
void |
setValidationModel(ValidationModel validationModel)
|
protected void |
sortActionMappings()
Remove duplicate action mappings. |
protected void |
writeControllerElement(StrutsConfigDocument.StrutsConfig scElement)
|
void |
writeForwards(ForwardDocument.Forward[] existingForwards,
XmlObject xmlForwardContainer)
|
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 DEFAULT_VALIDATOR_RULES_URI
Constructor Detail |
---|
public StrutsApp(String controllerClassName)
Method Detail |
---|
public ActionModel[] getActionMappings()
public List getActionMappingsAsList()
public void addMessageResources(MessageResourcesModel mr)
public void addActionMapping(ActionModel newActionMapping)
protected ActionModel createActionModel(ActionModel src, String newPath)
protected String getFormQualifiedActionPath(ActionModel action)
public void deleteActionMapping(ActionModel actionMapping)
public void addException(ExceptionModel c)
ExceptionContainer
.
addException
in interface ExceptionContainer
public FormBeanModel[] getFormBeans()
public List getFormBeansAsList()
public FormBeanModel getFormBean(String formBeanName)
public FormBeanModel getFormBeanByActualType(String actualTypeName)
public void addFormBean(FormBeanModel newFormBean)
public void deleteFormBean(FormBeanModel formBean)
public static File getWebappRootFromJpf(File jpf) throws NoWebInfDirectoryException
NoWebInfDirectoryException
public String getFormNameForType(String formType)
protected static String makeFullyQualifiedBeanName(String formType)
protected void sortActionMappings()
protected ForwardDocument.Forward addNewForward(XmlObject xmlObject)
protected Map getFormBeansMap()
protected List getExceptionCatchesList()
protected List getActionMappingsList()
protected List<MessageResourcesModel> getMessageResourcesList()
public MessageResourcesModel getDefaultMessageResources()
public boolean isReturnToPageDisabled()
public boolean isReturnToActionDisabled()
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 String getHeaderComment(File mergeFile)
public void setNestedPageFlow(boolean nestedPageFlow)
public void setSingletonPageFlow(boolean singletonPageFlow)
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 setSharedFlowTypeNames(List<String> sharedFlowTypeNames)
public String getMultipartHandlerClassName()
protected void setMultipartHandlerClassName(String multipartHandlerClassName)
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 |