@Component public class ResponseMessagesReader extends java.lang.Object implements OperationBuilderPlugin
Constructor and Description |
---|
ResponseMessagesReader(com.fasterxml.classmate.TypeResolver typeResolver,
TypeNameExtractor typeNameExtractor) |
Modifier and Type | Method and Description |
---|---|
void |
apply(OperationContext context)
Implement this method to override the Operation using the OperationBuilder available in the context
|
static int |
httpStatusCode(org.springframework.web.method.HandlerMethod handlerMethod) |
static java.lang.String |
message(org.springframework.web.method.HandlerMethod handlerMethod) |
boolean |
supports(DocumentationType delimiter) |
@Autowired public ResponseMessagesReader(com.fasterxml.classmate.TypeResolver typeResolver, TypeNameExtractor typeNameExtractor)
public void apply(OperationContext context)
OperationBuilderPlugin
apply
in interface OperationBuilderPlugin
context
- - context that can be used to override the parameter attributesOperation
,
OperationBuilder
public boolean supports(DocumentationType delimiter)
supports
in interface org.springframework.plugin.core.Plugin<DocumentationType>
public static int httpStatusCode(org.springframework.web.method.HandlerMethod handlerMethod)
public static java.lang.String message(org.springframework.web.method.HandlerMethod handlerMethod)