ProtocolMessage.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 org.openspcoop2.message.OpenSPCoop2Message;

  22. /**
  23.  * ProtocolMessage
  24.  *
  25.  * @author Poli Andrea (apoli@link.it)
  26.  * @author $Author$
  27.  * @version $Rev$, $Date$
  28.  */
  29. public class ProtocolMessage {

  30.     private BustaRawContent<?> bustaRawContent;
  31.     private boolean useBustaRawContentReadByValidation = false;
  32.     private OpenSPCoop2Message message;
  33.     private boolean phaseUnsupported = false;
  34.    
  35.     public boolean isPhaseUnsupported() {
  36.         return this.phaseUnsupported;
  37.     }
  38.     public void setPhaseUnsupported(boolean phaseUnsupported) {
  39.         this.phaseUnsupported = phaseUnsupported;
  40.     }
  41.     public BustaRawContent<?> getBustaRawContent() {
  42.         return this.bustaRawContent;
  43.     }
  44.     public void setBustaRawContent(BustaRawContent<?> bustaRawContent) {
  45.         this.bustaRawContent = bustaRawContent;
  46.     }
  47.     public boolean isUseBustaRawContentReadByValidation() {
  48.         return this.useBustaRawContentReadByValidation;
  49.     }
  50.     public void setUseBustaRawContentReadByValidation(boolean useBustaRawContentReadByValidation) {
  51.         this.useBustaRawContentReadByValidation = useBustaRawContentReadByValidation;
  52.     }
  53.     public OpenSPCoop2Message getMessage() {
  54.         return this.message;
  55.     }
  56.     public void setMessage(OpenSPCoop2Message message) {
  57.         this.message = message;
  58.     }
  59. }