public class JacksonJmxOperationResponseMapper extends 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 |
|---|---|
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.
|
public JacksonJmxOperationResponseMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public Class<?> mapResponseType(Class<?> responseType)
JmxOperationResponseMappermapResponseType in interface JmxOperationResponseMapperresponseType - the operation's response typepublic Object mapResponse(Object response)
JmxOperationResponseMappermapResponse in interface JmxOperationResponseMapperresponse - the operation's responseresponse, in a JMX compliant format