in VidispineMetadataMessageHandler.go [19:35]
func (h VidispineMetadataMessageHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
notificationPtr, bodyContentPtr := GetNotificationDocument(w, req)
if notificationPtr == nil || bodyContentPtr == nil {
return //the error message has already been output
}
routingKey := "vidispine.item.metadata.modify"
log.Printf("DEBUG VidispineMetadataMessageHandler.ServeHTTP received message for %s", routingKey)
sendErr := h.ConnectionPool.Send(h.ExchangeName, routingKey, bodyContentPtr)
if sendErr == nil {
w.WriteHeader(200)
} else {
log.Print("ERROR VidispineItemMessageHandler.ServeHTTP could not send message at all!")
w.WriteHeader(500)
}
}