Package org.apache.struts2.rest
Class RestActionSupport
java.lang.Object
org.apache.struts2.ActionSupport
org.apache.struts2.rest.RestActionSupport
- All Implemented Interfaces:
- Serializable,- Action,- ValidationAware,- LocaleProvider,- TextProvider,- Validateable
Extends 
ActionSupport to provides a default implementation of the index method that can be invoked for
 unknown actions by the UnknownHandler.- See Also:
- 
Field SummaryFields inherited from class org.apache.struts2.ActionSupportcontainer
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.struts2.ActionSupportaddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocale, getLocaleProvider, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocale, validate
- 
Constructor Details- 
RestActionSupportpublic RestActionSupport()
 
- 
- 
Method Details- 
indexDefault execution.- Returns:
- object because it can return string, result or httpHeader.
- Throws:
- Exception- in case of any error
 
- 
optionsInspect the implemented methods to know the allowed http methods.- Returns:
- Include the header "Allow" with the allowed http methods.
 
- 
createContinueBy default, return continue. Is possible override the method to return expectation failed.- Returns:
- continue
 
- 
updateContinueBy default, return continue. Is possible override the method to return expectation failed.- Returns:
- continue
 
 
-