Package org.apache.struts2.rest
Class ContentTypeInterceptor
java.lang.Object
com.opensymphony.xwork2.interceptor.AbstractInterceptor
org.apache.struts2.rest.ContentTypeInterceptor
- All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.ConditionalInterceptor
,com.opensymphony.xwork2.interceptor.Interceptor
,Serializable
public class ContentTypeInterceptor
extends com.opensymphony.xwork2.interceptor.AbstractInterceptor
Uses the content handler to apply the request body to the action
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintercept
(com.opensymphony.xwork2.ActionInvocation invocation) void
Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor
destroy, init, setDisabled, shouldIntercept
-
Constructor Details
-
ContentTypeInterceptor
public ContentTypeInterceptor()
-
-
Method Details
-
setContentTypeHandlerSelector
-
intercept
- Specified by:
intercept
in interfacecom.opensymphony.xwork2.interceptor.Interceptor
- Specified by:
intercept
in classcom.opensymphony.xwork2.interceptor.AbstractInterceptor
- Throws:
Exception
-