io.securecodebox.persistence.defectdojo.model.ScanFile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of defectdojo-client Show documentation
Show all versions of defectdojo-client Show documentation
This library helps with interacting with the REST API of DefectDojo.
The newest version!
// SPDX-FileCopyrightText: the secureCodeBox authors
//
// SPDX-License-Identifier: Apache-2.0
package io.securecodebox.persistence.defectdojo.model;
import lombok.Data;
/**
* DTO to upload a secureCodeBox scan file
*
* This is not a JSON model – thus not implementing the Model interface – because it is only used as DTO for the
* multi-part form upload.
*
*/
@Data
public final class ScanFile {
/**
* A default name must be set
*
* It does not matter however unless the parser pays attention to file endings like json or xml.
*
*/
private static final String DEFAULT_NAME = "default-name.txt";
/**
* The file content.
*/
private String content;
/**
* Name of file.
*
* Defaults to {@link #DEFAULT_NAME}.
*
*/
private String name;
public ScanFile(String content) {
this(content, DEFAULT_NAME);
}
public ScanFile(String content, String name) {
super();
this.content = content;
this.name = name;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy