io.convergence_platform.common.dto.ResponseHeaderDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of service-lib Show documentation
Show all versions of service-lib Show documentation
Holds the common functionality needed by all Convergence Platform-based services written in Java.
The newest version!
package io.convergence_platform.common.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.UUID;
public class ResponseHeaderDTO {
@JsonProperty("body_type")
private String bodyType;
@JsonProperty("status_code")
private int httpStatusCode = 500;
@JsonProperty("code")
private String code = "";
@JsonProperty("message")
private String message = "";
@JsonProperty("request_id")
private UUID requestId = null;
@JsonProperty("parent_request_id")
private UUID parentRequestId = null;
public String getBodyType() {
return bodyType;
}
public void setBodyType(String bodyType) {
this.bodyType = bodyType;
}
public int getHttpStatusCode() {
return httpStatusCode;
}
public void setHttpStatusCode(int httpStatusCode) {
this.httpStatusCode = httpStatusCode;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public UUID getRequestId() {
return requestId;
}
public void setRequestId(UUID requestId) {
this.requestId = requestId;
}
public UUID getParentRequestId() {
return parentRequestId;
}
public void setParentRequestId(UUID parentRequestId) {
this.parentRequestId = parentRequestId;
}
}