From 837cbcdc2562c0cd041ed558d05bb7dbba4be603 Mon Sep 17 00:00:00 2001 From: Michael Arrastia Date: Wed, 28 Mar 2018 17:22:56 +0100 Subject: Update published event to include header and body Originally, the published event only contained the raw graph request payload. This has now been updated to include the following changes: - encapsulate the graph request in a body property - add new event header with details such as timestamp, request-id, event-type Issue-ID: AAI-954 Change-Id: I780b6f52a01aafdcd7d09156e9d3a99c25be90a3 Signed-off-by: Michael Arrastia --- .../org/onap/crud/exception/CrudException.java | 46 +++++++++++----------- 1 file changed, 22 insertions(+), 24 deletions(-) (limited to 'src/main/java/org/onap/crud/exception/CrudException.java') diff --git a/src/main/java/org/onap/crud/exception/CrudException.java b/src/main/java/org/onap/crud/exception/CrudException.java index 919af96..a4fb3d7 100644 --- a/src/main/java/org/onap/crud/exception/CrudException.java +++ b/src/main/java/org/onap/crud/exception/CrudException.java @@ -24,36 +24,34 @@ import javax.ws.rs.core.Response.Status; public class CrudException extends Exception { - private static final long serialVersionUID = 8162385108397238865L; + private static final long serialVersionUID = 8162385108397238865L; - private Status httpStatus; + private Status httpStatus; - public CrudException() { - } + public CrudException() {} - public CrudException(String message, Status httpStatus) { - super(message); - this.setHttpStatus(httpStatus); - } + public CrudException(String message, Status httpStatus) { + super(message); + this.setHttpStatus(httpStatus); + } - public CrudException(Throwable cause) { - super(cause); - } + public CrudException(Throwable cause) { + super(cause); + } - public CrudException(String message, Throwable cause) { - super(message, cause); - } + public CrudException(String message, Throwable cause) { + super(message, cause); + } - public CrudException(String message, Throwable cause, boolean enableSuppression, - boolean writableStackTrace) { - super(message, cause, enableSuppression, writableStackTrace); - } + public CrudException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { + super(message, cause, enableSuppression, writableStackTrace); + } - public Status getHttpStatus() { - return httpStatus; - } + public Status getHttpStatus() { + return httpStatus; + } - public void setHttpStatus(Status httpStatus) { - this.httpStatus = httpStatus; - } + public void setHttpStatus(Status httpStatus) { + this.httpStatus = httpStatus; + } } -- cgit 1.2.3-korg