Class JacksonJmxOperationResponseMapper
java.lang.Object
org.springframework.boot.actuate.endpoint.jmx.JacksonJmxOperationResponseMapper
- All Implemented Interfaces:
JmxOperationResponseMapper
JmxOperationResponseMapper
that delegates to a Jackson ObjectMapper
to
return a JSON response.- Since:
- 2.0.0
- Author:
- Stephane Nicoll
-
Constructor Summary
ConstructorDescriptionJacksonJmxOperationResponseMapper
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionmapResponse
(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 Details
-
JacksonJmxOperationResponseMapper
public JacksonJmxOperationResponseMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
mapResponseType
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
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
-