AbstractBaseOpenSPCoop2RestMessage.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.rest;

  21. import java.io.InputStream;

  22. import org.openspcoop2.message.AbstractBaseOpenSPCoop2MessageDynamicContent;
  23. import org.openspcoop2.message.OpenSPCoop2MessageFactory;
  24. import org.openspcoop2.message.OpenSPCoop2RestMessage;
  25. import org.openspcoop2.message.exception.MessageException;
  26. import org.openspcoop2.message.exception.MessageNotSupportedException;

  27. /**
  28.  * AbstractBaseOpenSPCoop2RestMessage
  29.  *
  30.  * @author Andrea Poli (apoli@link.it)
  31.  * @author $Author$
  32.  * @version $Rev$, $Date$
  33.  */
  34. public abstract class AbstractBaseOpenSPCoop2RestMessage<T> extends AbstractBaseOpenSPCoop2MessageDynamicContent<T> implements OpenSPCoop2RestMessage<T> {
  35.    
  36.     /* Costruttore */
  37.    
  38.     protected AbstractBaseOpenSPCoop2RestMessage(OpenSPCoop2MessageFactory messageFactory) {
  39.         super(messageFactory);
  40.     }
  41.    
  42.     protected AbstractBaseOpenSPCoop2RestMessage(OpenSPCoop2MessageFactory messageFactory, InputStream isParam,String contentType) throws MessageException {
  43.         super(messageFactory, isParam, contentType, false, null);
  44.     }
  45.    

  46.    
  47.     /* Elementi REST */
  48.    
  49.     @Override
  50.     public boolean isProblemDetailsForHttpApis_RFC7807() throws MessageException,MessageNotSupportedException {
  51.         return false;
  52.     }
  53.    
  54. }