@Component public class UploaderManifestReader extends DataBridgeManifestReader<UploaderInputManifestDto>
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_ATTRIBUTE_NAME_LENGTH |
static int |
MAX_ATTRIBUTE_VALUE_LENGTH |
| Constructor and Description |
|---|
UploaderManifestReader() |
| Modifier and Type | Method and Description |
|---|---|
protected UploaderInputManifestDto |
getManifestFromReader(Reader reader,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Gets a manifest object from a reader and an object mapper.
|
protected void |
validateManifest(UploaderInputManifestDto manifest)
Validates the manifest file.
|
readJsonManifestpublic static final int MAX_ATTRIBUTE_NAME_LENGTH
public static final int MAX_ATTRIBUTE_VALUE_LENGTH
protected UploaderInputManifestDto getManifestFromReader(Reader reader, com.fasterxml.jackson.databind.ObjectMapper objectMapper) throws IOException
DataBridgeManifestReadergetManifestFromReader in class DataBridgeManifestReader<UploaderInputManifestDto>reader - the reader to read the file from.objectMapper - the object mapper.IOException - if the input file could not be read.protected void validateManifest(UploaderInputManifestDto manifest) throws IllegalArgumentException
validateManifest in class DataBridgeManifestReader<UploaderInputManifestDto>manifest - the manifest to validate.IllegalArgumentException - if the manifest is not valid.Copyright © 2021. All rights reserved.