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)
JmxOperationResponseMapper
mapResponseType
in interface JmxOperationResponseMapper
responseType
- the operation's response typepublic Object mapResponse(Object response)
JmxOperationResponseMapper
mapResponse
in interface JmxOperationResponseMapper
response
- the operation's responseresponse
, in a JMX compliant formatCopyright © 2019 Pivotal Software, Inc.. All rights reserved.