Class ActionExtensions
java.lang.Object
org.apache.struts2.dispatcher.mapper.ActionExtensions
Helpers for the ordered extension lists accepted by
struts.action.extension and the
per-package / per-action extension attribute. The first entry is the default and an empty
entry stands for "no extension".- Since:
- 7.5.0
-
Method Summary
-
Method Details
-
parse
Parses a comma separated extension list; a trailing comma adds an empty entry.- Parameters:
value- the raw value, may benull- Returns:
- an unmodifiable list in declared order, or an empty list when
valueisnull - Since:
- 7.5.0
-
allows
- Parameters:
allowed- the allowed extensionsextension- the extension to check,nullcounts as an empty one- Returns:
- whether
extensionis inallowed - Since:
- 7.5.0
-
select
- Parameters:
allowed- the allowed extensions, must not be emptycurrent- the preferred extension,nullcounts as an empty one- Returns:
currentwhen allowed, otherwise the first allowed extension- Since:
- 7.5.0
-