ValidazioneConSchema.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.basic.validator;

  21. import java.util.List;

  22. import org.openspcoop2.message.OpenSPCoop2Message;
  23. import org.openspcoop2.message.OpenSPCoop2MessageFactory;
  24. import org.openspcoop2.protocol.basic.BasicStateComponentFactory;
  25. import org.openspcoop2.protocol.sdk.Eccezione;
  26. import org.openspcoop2.protocol.sdk.IProtocolFactory;
  27. import org.openspcoop2.protocol.sdk.ProtocolException;
  28. import org.openspcoop2.protocol.sdk.state.IState;

  29. /**
  30.  * ValidazioneConSchema
  31.  *
  32.  * @author Poli Andrea (apoli@link.it)
  33.  * @author $Author$
  34.  * @version $Rev$, $Date$
  35.  *
  36.  */

  37. public class ValidazioneConSchema extends BasicStateComponentFactory implements
  38.         org.openspcoop2.protocol.sdk.validator.IValidazioneConSchema {

  39.     public ValidazioneConSchema(IProtocolFactory<?> factory,IState state) throws ProtocolException{
  40.         super(factory, state);
  41.     }

  42.     @Override
  43.     public List<Eccezione> getEccezioniValidazione() {
  44.         return new java.util.ArrayList<Eccezione>();
  45.     }

  46.     @Override
  47.     public List<Eccezione> getEccezioniProcessamento() {
  48.         return new java.util.ArrayList<Eccezione>();
  49.     }

  50.     @Override
  51.     public void valida(OpenSPCoop2Message message,
  52.             boolean isErroreProcessamento,
  53.             boolean isErroreIntestazione,
  54.             boolean isMessaggioConAttachments, boolean validazioneManifestAttachments) throws ProtocolException {
  55.         return;
  56.     }

  57.     @Override
  58.     public boolean initialize(OpenSPCoop2MessageFactory messageFactory) {
  59.         return true;
  60.     }

  61.     @Override
  62.     public IProtocolFactory<?> getProtocolFactory() {
  63.         return this.protocolFactory;
  64.     }

  65. }