UmbrellaHandler.sendErrorResponseToMalformedRequest(channel, request.getTxnId(),
"Missing publish request data");
return;
}
final PublishRequest publishRequest = request.getPublishRequest();
publisher.asyncPublish(request.getTopic(), publishRequest.getMsg(), new Callback<Void>() {
@Override
public void operationFailed(Object ctx, PubSubException exception) {
channel.write(PubSubResponseUtils.getResponseForException(exception, request.getTxnId()));
}