001/* 002 * (C) Copyright 2018 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * Luís Duarte 018 * Florent Guillaume 019 */ 020package org.nuxeo.ecm.automation.server.jaxrs.batch.handler; 021 022/** 023 * Structure that holds metadata about an uploaded file through a batch. 024 * 025 * @since 10.1 026 */ 027public class BatchFileInfo { 028 029 protected String key; 030 031 protected String filename; 032 033 protected String mimeType; 034 035 protected long length; 036 037 protected String md5; 038 039 public BatchFileInfo(String key, String filename, String mimeType, long length, String md5) { 040 this.key = key; 041 this.filename = filename; 042 this.mimeType = mimeType; 043 this.length = length; 044 this.md5 = md5; 045 } 046 047 public String getKey() { 048 return key; 049 } 050 051 public String getFilename() { 052 return filename; 053 } 054 055 public String getMimeType() { 056 return mimeType; 057 } 058 059 public long getLength() { 060 return length; 061 } 062 063 public String getMd5() { 064 return md5; 065 } 066 067}