AbstractEccezioneBuilderParameter.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.protocol.sdk;

  21. import java.util.Date;

  22. import org.openspcoop2.core.constants.TipoPdD;
  23. import org.openspcoop2.core.eccezione.details.DettaglioEccezione;
  24. import org.openspcoop2.core.id.IDServizio;
  25. import org.openspcoop2.core.id.IDSoggetto;
  26. import org.openspcoop2.message.config.ConfigurationRFC7807;
  27. import org.openspcoop2.message.config.IntegrationErrorReturnConfiguration;
  28. import org.openspcoop2.message.constants.MessageType;
  29. import org.openspcoop2.message.exception.ParseException;
  30. import org.openspcoop2.message.soap.SOAPFaultCode;
  31. import org.openspcoop2.protocol.sdk.builder.ProprietaErroreApplicativo;
  32. import org.openspcoop2.protocol.sdk.constants.IntegrationFunctionError;
  33. import org.openspcoop2.utils.date.DateManager;

  34. /**
  35.  * AbstractEccezioneBuilderParameter
  36.  *
  37.  * @author Poli Andrea (apoli@link.it)
  38.  * @author $Author$
  39.  * @version $Rev$, $Date$
  40.  */
  41. public abstract class AbstractEccezioneBuilderParameter {

  42.     private ProprietaErroreApplicativo proprieta;
  43.     private IDSoggetto dominioPorta;
  44.     private IDSoggetto mittente;
  45.     private IDServizio servizio;
  46.     private DettaglioEccezione dettaglioEccezionePdD;
  47.     private MessageType messageType;
  48.     private String idFunzione;
  49.     private String servizioApplicativo;
  50.     private TipoPdD tipoPorta;
  51.     private Date oraRegistrazione = DateManager.getDate();
  52.     private ParseException parseException;
  53.     private ConfigurationRFC7807 rfc7807;
  54.     private IntegrationErrorReturnConfiguration returnConfig;
  55.     private IntegrationFunctionError functionError;
  56.     private String nomePorta;
  57.     private String transactionId;
  58.     private Context context;
  59.    
  60.     public ParseException getParseException() {
  61.         return this.parseException;
  62.     }
  63.     public void setParseException(ParseException parseException) {
  64.         this.parseException = parseException;
  65.     }
  66.     public Date getOraRegistrazione() {
  67.         return this.oraRegistrazione;
  68.     }
  69.     public void setOraRegistrazione(Date oraRegistrazione) {
  70.         this.oraRegistrazione = oraRegistrazione;
  71.     }
  72.     public String getServizioApplicativo() {
  73.         return this.servizioApplicativo;
  74.     }
  75.     public void setServizioApplicativo(String servizioApplicativo) {
  76.         this.servizioApplicativo = servizioApplicativo;
  77.     }
  78.     public TipoPdD getTipoPorta() {
  79.         return this.tipoPorta;
  80.     }
  81.     public void setTipoPorta(TipoPdD tipoPorta) {
  82.         this.tipoPorta = tipoPorta;
  83.     }
  84.     public String getIdFunzione() {
  85.         return this.idFunzione;
  86.     }
  87.     public void setIdFunzione(String idFunzione) {
  88.         this.idFunzione = idFunzione;
  89.     }
  90.     public ProprietaErroreApplicativo getProprieta() {
  91.         return this.proprieta;
  92.     }
  93.     public void setProprieta(ProprietaErroreApplicativo proprieta) {
  94.         this.proprieta = proprieta;
  95.     }
  96.     public IDSoggetto getDominioPorta() {
  97.         return this.dominioPorta;
  98.     }
  99.     public void setDominioPorta(IDSoggetto dominioPorta) {
  100.         this.dominioPorta = dominioPorta;
  101.     }
  102.     public DettaglioEccezione getDettaglioEccezionePdD() {
  103.         return this.dettaglioEccezionePdD;
  104.     }
  105.     public void setDettaglioEccezionePdD(DettaglioEccezione dettaglioEccezionePdD) {
  106.         this.dettaglioEccezionePdD = dettaglioEccezionePdD;
  107.     }
  108.     public MessageType getMessageType() {
  109.         return this.messageType;
  110.     }
  111.     public void setMessageType(MessageType messageType) {
  112.         this.messageType = messageType;
  113.     }
  114.     public IDSoggetto getMittente() {
  115.         return this.mittente;
  116.     }
  117.     public void setMittente(IDSoggetto mittente) {
  118.         this.mittente = mittente;
  119.     }
  120.     public IDServizio getServizio() {
  121.         return this.servizio;
  122.     }
  123.     public void setServizio(IDServizio servizio) {
  124.         this.servizio = servizio;
  125.     }
  126.     public ConfigurationRFC7807 getRfc7807() {
  127.         return this.rfc7807;
  128.     }
  129.     public void setRfc7807(ConfigurationRFC7807 rfc7807) {
  130.         this.rfc7807 = rfc7807;
  131.     }
  132.     public IntegrationErrorReturnConfiguration getReturnConfig() {
  133.         return this.returnConfig;
  134.     }
  135.     public void setReturnConfig(IntegrationErrorReturnConfiguration returnConfig) {
  136.         this.returnConfig = returnConfig;
  137.     }
  138.     public IntegrationFunctionError getFunctionError() {
  139.         return this.functionError;
  140.     }
  141.     public void setFunctionError(IntegrationFunctionError functionError) {
  142.         this.functionError = functionError;
  143.     }
  144.     public String getNomePorta() {
  145.         return this.nomePorta;
  146.     }
  147.     public void setNomePorta(String nomePorta) {
  148.         this.nomePorta = nomePorta;
  149.     }
  150.     public String getTransactionId() {
  151.         return this.transactionId;
  152.     }
  153.     public void setTransactionId(String transactionId) {
  154.         this.transactionId = transactionId;
  155.     }
  156.     public Context getContext() {
  157.         return this.context;
  158.     }
  159.     public void setContext(Context context) {
  160.         this.context = context;
  161.     }
  162.     public abstract SOAPFaultCode getSoapFaultCode();
  163. }