public class MockApiBaseInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MockApiBaseInfo.StatusCodeEnum
mock后端自定义状态码: \"200\": \"OK\", \"201\": \"Created\", \"202\": \"Accepted\", \"203\": \"NonAuthoritativeInformation\", \"204\": \"NoContent\", \"205\": \"ResetContent\", \"206\": \"PartialContent\", \"300\": \"MultipleChoices\", \"301\": \"MovedPermanently\", \"302\": \"Found\", \"303\": \"SeeOther\", \"304\": \"NotModified\", \"305\": \"UseProxy\", \"306\": \"Unused\", \"307\": \"TemporaryRedirect\", \"400\": \"BadRequest\", \"401\": \"Unauthorized\", \"402\": \"PaymentRequired\", \"403\": \"Forbidden\", \"404\": \"NotFound\", \"405\": \"MethodNotAllowed\", \"406\": \"NotAcceptable\", \"407\": \"ProxyAuthenticationRequired\", \"408\": \"RequestTimeout\", \"409\": \"Conflict\", \"410\": \"Gone\", \"411\": \"LengthRequired\", \"412\": \"PreconditionFailed\", \"413\": \"RequestEntityTooLarge\", \"414\": \"RequestURITooLong\", \"415\": \"UnsupportedMediaType\", \"416\": \"RequestedRangeNotSatisfiable\", \"417\": \"ExpectationFailed\", \"450\": \"ParameterRequried\", \"451\": \"MethodConnectException\", \"500\": \"InternalServerError\", \"501\": \"NotImplemented\", \"502\": \"BadGateway\", \"503\": \"ServiceUnavailable\", \"504\": \"GatewayTimeout\", \"505\": \"HTTPVersionNotSupported\",
|
| Constructor and Description |
|---|
MockApiBaseInfo() |
| Modifier and Type | Method and Description |
|---|---|
MockApiBaseInfo |
addHeaderItem(MockApiBaseInfoHeader headerItem) |
boolean |
equals(Object o) |
String |
getAuthorizerId()
后端自定义认证ID
|
List<MockApiBaseInfoHeader> |
getHeader()
mock后端自定义响应头header
|
String |
getRemark()
描述信息。 > 中文字符必须为UTF-8或者unicode编码。
|
String |
getResultContent()
返回结果
|
MockApiBaseInfo.StatusCodeEnum |
getStatusCode()
mock后端自定义状态码: \"200\": \"OK\", \"201\": \"Created\", \"202\": \"Accepted\", \"203\": \"NonAuthoritativeInformation\", \"204\": \"NoContent\", \"205\": \"ResetContent\", \"206\": \"PartialContent\", \"300\": \"MultipleChoices\", \"301\": \"MovedPermanently\", \"302\": \"Found\", \"303\": \"SeeOther\", \"304\": \"NotModified\", \"305\": \"UseProxy\", \"306\": \"Unused\", \"307\": \"TemporaryRedirect\", \"400\": \"BadRequest\", \"401\": \"Unauthorized\", \"402\": \"PaymentRequired\", \"403\": \"Forbidden\", \"404\": \"NotFound\", \"405\": \"MethodNotAllowed\", \"406\": \"NotAcceptable\", \"407\": \"ProxyAuthenticationRequired\", \"408\": \"RequestTimeout\", \"409\": \"Conflict\", \"410\": \"Gone\", \"411\": \"LengthRequired\", \"412\": \"PreconditionFailed\", \"413\": \"RequestEntityTooLarge\", \"414\": \"RequestURITooLong\", \"415\": \"UnsupportedMediaType\", \"416\": \"RequestedRangeNotSatisfiable\", \"417\": \"ExpectationFailed\", \"450\": \"ParameterRequried\", \"451\": \"MethodConnectException\", \"500\": \"InternalServerError\", \"501\": \"NotImplemented\", \"502\": \"BadGateway\", \"503\": \"ServiceUnavailable\", \"504\": \"GatewayTimeout\", \"505\": \"HTTPVersionNotSupported\",
|
String |
getVersion()
版本。字符长度不超过64
|
int |
hashCode() |
void |
setAuthorizerId(String authorizerId) |
void |
setHeader(List<MockApiBaseInfoHeader> header) |
void |
setRemark(String remark) |
void |
setResultContent(String resultContent) |
void |
setStatusCode(MockApiBaseInfo.StatusCodeEnum statusCode) |
void |
setVersion(String version) |
String |
toString() |
MockApiBaseInfo |
withAuthorizerId(String authorizerId) |
MockApiBaseInfo |
withHeader(java.util.function.Consumer<List<MockApiBaseInfoHeader>> headerSetter) |
MockApiBaseInfo |
withHeader(List<MockApiBaseInfoHeader> header) |
MockApiBaseInfo |
withRemark(String remark) |
MockApiBaseInfo |
withResultContent(String resultContent) |
MockApiBaseInfo |
withStatusCode(MockApiBaseInfo.StatusCodeEnum statusCode) |
MockApiBaseInfo |
withVersion(String version) |
public MockApiBaseInfo withRemark(String remark)
public String getRemark()
public void setRemark(String remark)
public MockApiBaseInfo withResultContent(String resultContent)
public String getResultContent()
public void setResultContent(String resultContent)
public MockApiBaseInfo withVersion(String version)
public String getVersion()
public void setVersion(String version)
public MockApiBaseInfo withAuthorizerId(String authorizerId)
public String getAuthorizerId()
public void setAuthorizerId(String authorizerId)
public MockApiBaseInfo withStatusCode(MockApiBaseInfo.StatusCodeEnum statusCode)
public MockApiBaseInfo.StatusCodeEnum getStatusCode()
public void setStatusCode(MockApiBaseInfo.StatusCodeEnum statusCode)
public MockApiBaseInfo withHeader(List<MockApiBaseInfoHeader> header)
public MockApiBaseInfo addHeaderItem(MockApiBaseInfoHeader headerItem)
public MockApiBaseInfo withHeader(java.util.function.Consumer<List<MockApiBaseInfoHeader>> headerSetter)
public List<MockApiBaseInfoHeader> getHeader()
public void setHeader(List<MockApiBaseInfoHeader> header)
Copyright © 2022. All rights reserved.