public class AuthorizationSnippet extends org.springframework.restdocs.snippet.TemplatedSnippet implements SectionSupport
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHORIZATION |
| Constructor and Description |
|---|
AuthorizationSnippet(String defaultAuthorization) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
createModel(org.springframework.restdocs.operation.Operation operation) |
static org.springframework.mock.web.MockHttpServletRequest |
documentAuthorization(org.springframework.mock.web.MockHttpServletRequest request,
String authorization) |
String |
getFileName()
File name (= section name).
|
String |
getHeaderKey()
Section header key corresponding to entry in translation file.
|
boolean |
hasContent(org.springframework.restdocs.operation.Operation operation)
Flag if section will render non-empty content.
|
public static final String AUTHORIZATION
public AuthorizationSnippet(String defaultAuthorization)
protected Map<String,Object> createModel(org.springframework.restdocs.operation.Operation operation)
createModel in class org.springframework.restdocs.snippet.TemplatedSnippetpublic static org.springframework.mock.web.MockHttpServletRequest documentAuthorization(org.springframework.mock.web.MockHttpServletRequest request,
String authorization)
public String getFileName()
SectionSupportgetFileName in interface SectionSupportpublic String getHeaderKey()
SectionSupportgetHeaderKey in interface SectionSupportpublic boolean hasContent(org.springframework.restdocs.operation.Operation operation)
SectionSupporthasContent in interface SectionSupportoperation - operationCopyright © 2018 Scalable Capital GmbH. All rights reserved.