응답지연시간 / 응답 status code 설정 기능 추가
This commit is contained in:
@@ -10,7 +10,9 @@ import javax.persistence.Id;
|
||||
import javax.persistence.Index;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.UniqueConstraint;
|
||||
import javax.validation.constraints.Digits;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Positive;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Entity
|
||||
@@ -46,6 +48,12 @@ public class ApiInfo implements Serializable {
|
||||
@Column(length = 5000)
|
||||
private String responseHeaders;
|
||||
|
||||
@Digits(fraction = 0, integer = 3)
|
||||
private Integer responseStatusCode;
|
||||
|
||||
@Positive
|
||||
private Integer sleepSeconds;
|
||||
|
||||
@Column(length = 5000)
|
||||
private String responseBody1;
|
||||
|
||||
@@ -116,6 +124,22 @@ public class ApiInfo implements Serializable {
|
||||
this.responseHeaders = responseHeaders;
|
||||
}
|
||||
|
||||
public Integer getResponseStatusCode() {
|
||||
return responseStatusCode;
|
||||
}
|
||||
|
||||
public void setResponseStatusCode(Integer responseStatusCode) {
|
||||
this.responseStatusCode = responseStatusCode;
|
||||
}
|
||||
|
||||
public Integer getSleepSeconds() {
|
||||
return sleepSeconds;
|
||||
}
|
||||
|
||||
public void setSleepSeconds(Integer sleepSeconds) {
|
||||
this.sleepSeconds = sleepSeconds;
|
||||
}
|
||||
|
||||
public String getResponseBody1() {
|
||||
return responseBody1;
|
||||
}
|
||||
@@ -136,7 +160,8 @@ public class ApiInfo implements Serializable {
|
||||
public String toString() {
|
||||
return "ApiInfo [id=" + id + ", apiGroupName=" + apiGroupName + ", apiName=" + apiName + ", url=" + url
|
||||
+ ", serviceValue=" + serviceValue + ", method=" + method + ", responseContentType="
|
||||
+ responseContentType + ", responseHeaders=" + responseHeaders + ", responseBody1=" + responseBody1
|
||||
+ responseContentType + ", responseHeaders=" + responseHeaders + ", responseStatusCode="
|
||||
+ responseStatusCode + ", sleepSeconds=" + sleepSeconds + ", responseBody1=" + responseBody1
|
||||
+ ", responseBody2=" + responseBody2 + "]";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user