Package org.apache.struts2.rest

# Class ContentTypeInterceptor

java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
org.apache.struts2.rest.ContentTypeInterceptor

All Implemented Interfaces:
  `Serializable`, `ConditionalInterceptor`, `Interceptor`

public class ContentTypeInterceptor extends AbstractInterceptor
Uses the content handler to apply the request body to the action

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ContentTypeInterceptor()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `intercept(ActionInvocation invocation)`
  `void`
  `setContentTypeHandlerSelector(ContentTypeHandlerManager selector)`

  ### Methods inherited from class org.apache.struts2.interceptor.AbstractInterceptor

  `destroy, init, setDisabled, shouldIntercept`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ContentTypeInterceptor

    public ContentTypeInterceptor()

- ## Method Details

  - ### setContentTypeHandlerSelector

    public void setContentTypeHandlerSelector(ContentTypeHandlerManager selector)

  - ### intercept

    public String intercept(ActionInvocation invocation) throws Exception
    Specified by:
      `intercept` in interface `Interceptor`
    Specified by:
      `intercept` in class `AbstractInterceptor`
    Throws:
      `Exception`