/**
* This class represents a message being sent out to DMaaP by APPC to update listeners on the status of a request
- *
*/
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public OutputBody() {
}
+ public OutputBody(InputBody msg) {
+ this.header = new CommonHeader(msg.getCommonHeader());
+ }
+
public JSONObject toResponse() {
return Mapper.toJsonObject(this);
}
- public OutputBody(InputBody msg) {
- this.header = new CommonHeader(msg.getCommonHeader());
- }
-
public String getLocked() {
return locked;
}
- public void setLocked(String locked) {
- this.locked = locked;
- }
public String getPayload() {
return payload;
}
- public void setPayload(String payload) {
- this.payload = payload;
- }
-
public CommonHeader getHeader() {
return header;
}
- public void setHeader(CommonHeader header) {
- this.header = header;
- }
-
public ResponseStatus getStatus() {
return status;
}
this.status = status;
}
+ public void setLocked(String locked) {
+ this.locked = locked;
+ }
+
+ public void setHeader(CommonHeader header) {
+ this.header = header;
+ }
+
+ public void setPayload(String payload) {
+ this.payload = payload;
+ }
+
@Override
public String toString() {
return String.format("%s - %s(%s)", getHeader().getRequestID(), getStatus().getCode(), getStatus().getValue());