public class JacksonJmxOperationResponseMapper extends java.lang.Object implements JmxOperationResponseMapper
JmxOperationResponseMapper that delegates to a Jackson ObjectMapper to
return a JSON response.| Constructor and Description |
|---|
JacksonJmxOperationResponseMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
mapResponse(java.lang.Object response)
Map the operation's response so that it can be consumed by a JMX compliant client.
|
java.lang.Class<?> |
mapResponseType(java.lang.Class<?> responseType)
Map the response type to its JMX compliant counterpart.
|
public JacksonJmxOperationResponseMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public java.lang.Class<?> mapResponseType(java.lang.Class<?> responseType)
JmxOperationResponseMappermapResponseType in interface JmxOperationResponseMapperresponseType - the operation's response typepublic java.lang.Object mapResponse(java.lang.Object response)
JmxOperationResponseMappermapResponse in interface JmxOperationResponseMapperresponse - the operation's responseresponse, in a JMX compliant format