Class ActionExtensionInterceptor

java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
org.apache.struts2.interceptor.ActionExtensionInterceptor
All Implemented Interfaces:
Serializable, ConditionalInterceptor, Interceptor

public class ActionExtensionInterceptor extends AbstractInterceptor
Rejects requests whose URL extension is not among the extensions declared on the action or its package with the extension attribute. Actions without a declaration are not restricted.

A rejected request resolves to badExtensionResultName when the action maps that result, otherwise the response is 404 Not Found.

Only the request's own action is checked; actions reached by chaining are not.

Since:
7.5.0
See Also: