DumpMessaggioMultipartInfo.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */


  20. package org.openspcoop2.message.utils;

  21. import java.io.Serializable;
  22. import java.util.HashMap;
  23. import java.util.List;
  24. import java.util.Map;

  25. import org.openspcoop2.utils.transport.TransportUtils;

  26. /**
  27.  * Messaggio
  28.  *
  29.  * @author Poli Andrea (apoli@link.it)
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  */
  33. public class DumpMessaggioMultipartInfo implements Serializable{

  34.     /**
  35.      *
  36.      */
  37.     private static final long serialVersionUID = 4718160136521047108L;
  38.        
  39.     private String contentId;
  40.     private String contentLocation;
  41.     private String contentType;
  42.     private Map<String, List<String>> headers = new HashMap<>();
  43.    
  44.     public String getContentType() {
  45.         return this.contentType;
  46.     }

  47.     public void setContentType(String contentType) {
  48.         this.contentType = contentType;
  49.     }
  50.    
  51.     public String getContentId() {
  52.         return this.contentId;
  53.     }

  54.     public void setContentId(String contentId) {
  55.         this.contentId = contentId;
  56.     }

  57.     public String getContentLocation() {
  58.         return this.contentLocation;
  59.     }

  60.     public void setContentLocation(String contentLocation) {
  61.         this.contentLocation = contentLocation;
  62.     }

  63.     @Deprecated
  64.     public Map<String, String> getHeaders() {
  65.         return TransportUtils.convertToMapSingleValue(this.headers);
  66.     }
  67.     public Map<String, List<String>> getHeadersValues() {
  68.         return this.headers;
  69.     }

  70.     @Deprecated
  71.     public void setHeaders(Map<String, String> headers) {
  72.         this.headers = TransportUtils.convertToMapListValues(headers);
  73.     }
  74.     public void setHeadersValues(Map<String, List<String>> headers) {
  75.         this.headers = headers;
  76.     }
  77.    
  78. }