类 ResponseMessageBuilder
java.lang.Object
springfox.documentation.builders.ResponseMessageBuilder
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()code(int code) Updates the http response codeheaders(Map<String, ModelReference> headers) 已过时。headersWithDescription(Map<String, Header> headers) Updates the response headersUpdates the response messageresponseModel(ModelReference responseModel) Updates the model the response representsvendorExtensions(List<VendorExtension> extensions) Updates the response message extensions
-
构造器详细资料
-
ResponseMessageBuilder
public ResponseMessageBuilder()
-
-
方法详细资料
-
code
Updates the http response code- 参数:
code- - response code- 返回:
- this
-
message
Updates the response message- 参数:
message- - message- 返回:
- this
-
responseModel
Updates the model the response represents- 参数:
responseModel- - model reference- 返回:
- this
-
headers
已过时。Updates the response headers- 参数:
headers- header responses- 返回:
- this
- 从以下版本开始:
- 2.5.0
-
headersWithDescription
Updates the response headers- 参数:
headers- headers with description- 返回:
- this
- 从以下版本开始:
- 2.5.0
-
vendorExtensions
Updates the response message extensions- 参数:
extensions- - response message extensions- 返回:
- this
- 从以下版本开始:
- 2.5.0
-
build
-
headersWithDescription(java.util.Map<java.lang.String, springfox.documentation.service.Header>)instead