MethodCallMessage request;
try {
LOGGER.trace("attempt to read SecureRequest from inputData");
request = mapper.readValue(input, MethodCallMessage.class);
} catch (IOException e) {
throw new FilterException(e);
}
String callId = request.getCallId();
LOGGER.info("extracted callId \"{}\" from message", callId);
metaData.put("callId", callId);
LOGGER.debug("converting arguments of inputmessage");
JsonUtils.convertAllArgs(request);
LOGGER.debug("invoking next filter: {}", next.getClass().getName());
MethodResultMessage response = (MethodResultMessage) next.filter(request, metaData);
LOGGER.debug("response received for callId {}: {}. serializing to json", callId, response);
try {
return mapper.writeValueAsString(response);
} catch (IOException e) {
throw new FilterException(e);
}
}