org.apache.struts2.rest

## Class ContentTypeInterceptor

- java.lang.Object
- - com.opensymphony.xwork2.interceptor.AbstractInterceptor
  - - org.apache.struts2.rest.ContentTypeInterceptor

- All Implemented Interfaces:
    Interceptor, Serializable

      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 and Description
    `ContentTypeInterceptor()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `intercept(ActionInvocation invocation)`
    `void` | `setContentTypeHandlerSelector(ContentTypeHandlerManager sel)`

    - ### Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor

      `destroy, init`

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

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

- - ### Constructor Detail

    - #### ContentTypeInterceptor

          public ContentTypeInterceptor()

  - ### Method Detail

    - #### setContentTypeHandlerSelector

          public void setContentTypeHandlerSelector(ContentTypeHandlerManager sel)

    - #### intercept

          public String intercept(ActionInvocation invocation)
                           throws Exception

      Specified by:
        `intercept` in interface `Interceptor`
      Specified by:
        `intercept` in class `AbstractInterceptor`
      Throws:
        `Exception`

Copyright © 2000–2023 Apache Software Foundation. All rights reserved.