Example usage for org.springframework.restdocs.operation OperationRequestPart getHeaders

List of usage examples for org.springframework.restdocs.operation OperationRequestPart getHeaders

Introduction

In this page you can find the example usage for org.springframework.restdocs.operation OperationRequestPart getHeaders.

Prototype

HttpHeaders getHeaders();

Source Link

Document

Returns the part's headers.

Usage

From source file:io.github.restdocsext.jersey.operation.preprocess.BinaryPartPlaceholderOperationPreprocessor.java

private OperationRequestPart modifyPart(OperationRequestPart part, MultiPartField field) {
    final String content = field.getPlaceholder() == null ? DEFAULT_CONTENT : field.getPlaceholder();
    return BinaryPartPlaceholderOperationPreprocessor.this.partFactory.create(field.getName(),
            part.getSubmittedFileName(), content.getBytes(), part.getHeaders());
}