public class RequestParametersSnippet extends StandardTableSnippet
| Modifier and Type | Field and Description |
|---|---|
static String |
SPRING_DATA_PAGEABLE_CLASS |
| Constructor and Description |
|---|
RequestParametersSnippet() |
RequestParametersSnippet(boolean failOnUndocumentedParams) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.restdocs.snippet.Attributes.Attribute |
constraintAttribute(org.springframework.core.MethodParameter param,
ConstraintReader constraintReader) |
protected FieldDescriptors |
createFieldDescriptors(org.springframework.restdocs.operation.Operation operation,
org.springframework.web.method.HandlerMethod handlerMethod) |
protected org.springframework.restdocs.snippet.Attributes.Attribute |
defaultValueAttribute(A annot) |
protected org.springframework.restdocs.snippet.Attributes.Attribute |
deprecatedAttribute(org.springframework.core.MethodParameter param,
A annot,
JavadocReader javadocReader) |
protected void |
enrichModel(Map<String,Object> model,
org.springframework.web.method.HandlerMethod handlerMethod,
FieldDescriptors fieldDescriptors) |
RequestParametersSnippet |
failOnUndocumentedParams(boolean failOnUndocumentedParams) |
protected org.springframework.web.bind.annotation.RequestParam |
getAnnotation(org.springframework.core.MethodParameter param) |
protected String |
getDefaultValue(org.springframework.web.bind.annotation.RequestParam annotation) |
String |
getFileName()
File name (= section name).
|
String |
getHeaderKey()
Section header key corresponding to entry in translation file.
|
protected String |
getPath(org.springframework.web.bind.annotation.RequestParam annot) |
protected String[] |
getTranslationKeys() |
boolean |
hasContent(org.springframework.restdocs.operation.Operation operation)
Flag if section will render non-empty content.
|
protected boolean |
isCustomDefaultValue(String defaultValue) |
protected boolean |
isRequired(org.springframework.core.MethodParameter param,
org.springframework.web.bind.annotation.RequestParam annot) |
protected org.springframework.restdocs.snippet.Attributes.Attribute |
optionalsAttribute(org.springframework.core.MethodParameter param,
A annot) |
protected boolean |
shouldFailOnUndocumentedParams() |
createModel, createModelForDescriptorpublic static final String SPRING_DATA_PAGEABLE_CLASS
public RequestParametersSnippet()
public RequestParametersSnippet(boolean failOnUndocumentedParams)
public RequestParametersSnippet failOnUndocumentedParams(boolean failOnUndocumentedParams)
protected boolean isRequired(org.springframework.core.MethodParameter param,
org.springframework.web.bind.annotation.RequestParam annot)
protected String getPath(org.springframework.web.bind.annotation.RequestParam annot)
protected org.springframework.web.bind.annotation.RequestParam getAnnotation(org.springframework.core.MethodParameter param)
protected void enrichModel(Map<String,Object> model, org.springframework.web.method.HandlerMethod handlerMethod, FieldDescriptors fieldDescriptors)
enrichModel in class StandardTableSnippetpublic String getHeaderKey()
SectionSupportprotected boolean shouldFailOnUndocumentedParams()
protected String getDefaultValue(org.springframework.web.bind.annotation.RequestParam annotation)
protected String[] getTranslationKeys()
getTranslationKeys in class StandardTableSnippetprotected FieldDescriptors createFieldDescriptors(org.springframework.restdocs.operation.Operation operation, org.springframework.web.method.HandlerMethod handlerMethod)
createFieldDescriptors in class StandardTableSnippetprotected boolean isCustomDefaultValue(String defaultValue)
protected org.springframework.restdocs.snippet.Attributes.Attribute constraintAttribute(org.springframework.core.MethodParameter param,
ConstraintReader constraintReader)
protected org.springframework.restdocs.snippet.Attributes.Attribute optionalsAttribute(org.springframework.core.MethodParameter param,
A annot)
protected org.springframework.restdocs.snippet.Attributes.Attribute deprecatedAttribute(org.springframework.core.MethodParameter param,
A annot,
JavadocReader javadocReader)
protected org.springframework.restdocs.snippet.Attributes.Attribute defaultValueAttribute(A annot)
public String getFileName()
SectionSupportgetFileName in interface SectionSupportpublic boolean hasContent(org.springframework.restdocs.operation.Operation operation)
SectionSupporthasContent in interface SectionSupportoperation - operationCopyright © 2018 Scalable Capital GmbH. All rights reserved.