Class JacksonJmxOperationResponseMapper
- java.lang.Object
- org.springframework.boot.actuate.endpoint.jmx.JacksonJmxOperationResponseMapper
- All Implemented Interfaces:
JmxOperationResponseMapper
public class JacksonJmxOperationResponseMapper extends Object implements JmxOperationResponseMapper
JmxOperationResponseMapper
that delegates to a JacksonObjectMapper
to return a JSON response.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description JacksonJmxOperationResponseMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
Constructor Detail
JacksonJmxOperationResponseMapper
public JacksonJmxOperationResponseMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Method Detail
mapResponseType
public Class<?> mapResponseType(Class<?> responseType)
Description copied from interface:JmxOperationResponseMapper
Map the response type to its JMX compliant counterpart.- Specified by:
mapResponseType
in interfaceJmxOperationResponseMapper
- Parameters:
responseType
- the operation's response type- Returns:
- the JMX compliant type
mapResponse
public Object mapResponse(Object response)
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 interfaceJmxOperationResponseMapper
- Parameters:
response
- the operation's response- Returns:
- the
response
, in a JMX compliant format