public class ResponseMessageBuilder
extends java.lang.Object
Constructor and Description |
---|
ResponseMessageBuilder() |
Modifier and Type | Method and Description |
---|---|
ResponseMessage |
build() |
ResponseMessageBuilder |
code(int code)
Updates the http response code
|
ResponseMessageBuilder |
headers(java.util.Map<java.lang.String,ModelReference> headers)
Deprecated.
|
ResponseMessageBuilder |
headersWithDescription(java.util.Map<java.lang.String,Header> headers)
Updates the response headers
|
ResponseMessageBuilder |
message(java.lang.String message)
Updates the response message
|
ResponseMessageBuilder |
responseModel(ModelReference responseModel)
Updates the model the response represents
|
ResponseMessageBuilder |
vendorExtensions(java.util.List<VendorExtension> extensions)
Updates the response message extensions
|
public ResponseMessageBuilder code(int code)
code
- - response codepublic ResponseMessageBuilder message(java.lang.String message)
message
- - messagepublic ResponseMessageBuilder responseModel(ModelReference responseModel)
responseModel
- - model reference@Deprecated public ResponseMessageBuilder headers(java.util.Map<java.lang.String,ModelReference> headers)
headersWithDescription(java.util.Map<java.lang.String, springfox.documentation.service.Header>)
insteadheaders
- public ResponseMessageBuilder headersWithDescription(java.util.Map<java.lang.String,Header> headers)
headers
- public ResponseMessageBuilder vendorExtensions(java.util.List<VendorExtension> extensions)
extensions
- - response message extensionspublic ResponseMessage build()