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 Details

    • ContentTypeInterceptor

      public ContentTypeInterceptor()
  • Method Details

    • setContentTypeHandlerSelector

      public void setContentTypeHandlerSelector(ContentTypeHandlerManager selector)
    • intercept

      public String intercept(com.opensymphony.xwork2.ActionInvocation invocation) throws Exception
      Specified by:
      intercept in interface com.opensymphony.xwork2.interceptor.Interceptor
      Specified by:
      intercept in class com.opensymphony.xwork2.interceptor.AbstractInterceptor
      Throws:
      Exception