Class Jackson2JmxOperationResponseMapper

java.lang.Object
org.springframework.boot.actuate.endpoint.jmx.Jackson2JmxOperationResponseMapper
All Implemented Interfaces:
JmxOperationResponseMapper

@Deprecated(since="4.0.0", forRemoval=true) public class Jackson2JmxOperationResponseMapper extends Object implements JmxOperationResponseMapper
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.0.0 for removal in 4.2.0 in favor of JacksonJmxOperationResponseMapper.
JmxOperationResponseMapper that delegates to a Jackson 2 ObjectMapper to return a JSON response.
Since:
4.0.0
Author:
Stephane Nicoll
  • Constructor Summary

    Constructors
    Constructor
    Description
    Jackson2JmxOperationResponseMapper(@Nullable com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Object
    mapResponse(@Nullable Object response)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Map the operation's response so that it can be consumed by a JMX compliant client.
    mapResponseType(Class<?> responseType)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Map the response type to its JMX compliant counterpart.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Jackson2JmxOperationResponseMapper

      public Jackson2JmxOperationResponseMapper(@Nullable com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • mapResponseType

      public Class<?> mapResponseType(Class<?> responseType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: JmxOperationResponseMapper
      Map the response type to its JMX compliant counterpart.
      Specified by:
      mapResponseType in interface JmxOperationResponseMapper
      Parameters:
      responseType - the operation's response type
      Returns:
      the JMX compliant type
    • mapResponse

      @Contract("!null -> !null") public @Nullable Object mapResponse(@Nullable Object response)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: JmxOperationResponseMapper
      Map the operation's response so that it can be consumed by a JMX compliant client.
      Specified by:
      mapResponse in interface JmxOperationResponseMapper
      Parameters:
      response - the operation's response
      Returns:
      the response, in a JMX compliant format