Class JacksonJmxOperationResponseMapper
java.lang.Object
org.springframework.boot.actuate.endpoint.jmx.JacksonJmxOperationResponseMapper
- All Implemented Interfaces:
JmxOperationResponseMapper
JmxOperationResponseMapper that delegates to a Jackson JsonMapper to
return a JSON response.- Since:
- 2.0.0
- Author:
- Stephane Nicoll
-
Constructor Summary
ConstructorsConstructorDescriptionJacksonJmxOperationResponseMapper(@Nullable tools.jackson.databind.json.JsonMapper jsonMapper) -
Method Summary
Modifier and TypeMethodDescription@Nullable ObjectmapResponse(@Nullable 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(@Nullable tools.jackson.databind.json.JsonMapper jsonMapper)
-
-
Method Details
-
mapResponseType
Description copied from interface:JmxOperationResponseMapperMap the response type to its JMX compliant counterpart.- Specified by:
mapResponseTypein interfaceJmxOperationResponseMapper- Parameters:
responseType- the operation's response type- Returns:
- the JMX compliant type
-
mapResponse
Description copied from interface:JmxOperationResponseMapperMap the operation's response so that it can be consumed by a JMX compliant client.- Specified by:
mapResponsein interfaceJmxOperationResponseMapper- Parameters:
response- the operation's response- Returns:
- the
response, in a JMX compliant format
-