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

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

Introduction

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

Prototype

String getSubmittedFileName();

Source Link

Document

Returns the name of the file that is being uploaded in this part.

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());
}