类 JacksonJmxOperationResponseMapper
- java.lang.Object
- org.springframework.boot.actuate.endpoint.jmx.JacksonJmxOperationResponseMapper
- 所有已实现的接口:
JmxOperationResponseMapper
public class JacksonJmxOperationResponseMapper extends Object implements JmxOperationResponseMapper
JmxOperationResponseMapper
that delegates to a JacksonObjectMapper
to return a JSON response.- 从以下版本开始:
- 2.0.0
构造器概要
构造器 构造器 说明 JacksonJmxOperationResponseMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Object
mapResponse(Object response)
Map the operation's response so that it can be consumed by a JMX compliant client.Class<?>
mapResponseType(Class<?> responseType)
Map the response type to its JMX compliant counterpart.
构造器详细资料
JacksonJmxOperationResponseMapper
public JacksonJmxOperationResponseMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
方法详细资料
mapResponseType
public Class<?> mapResponseType(Class<?> responseType)
从接口复制的说明:JmxOperationResponseMapper
Map the response type to its JMX compliant counterpart.- 指定者:
mapResponseType
在接口中JmxOperationResponseMapper
- 参数:
responseType
- the operation's response type- 返回:
- the JMX compliant type
mapResponse
public Object mapResponse(Object response)
从接口复制的说明:JmxOperationResponseMapper
Map the operation's response so that it can be consumed by a JMX compliant client.- 指定者:
mapResponse
在接口中JmxOperationResponseMapper
- 参数:
response
- the operation's response- 返回:
- the
response
, in a JMX compliant format