IntegrationErrorReturnConfiguration.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.config;

  21. /**
  22.  * IntegrationErrorReturnCodeConfiguration
  23.  *
  24.  *
  25.  * @author Poli Andrea (apoli@link.it)
  26.  * @author $Author$
  27.  * @version $Rev$, $Date$
  28.  */

  29. public class IntegrationErrorReturnConfiguration implements java.io.Serializable {

  30.     /**
  31.      *
  32.      */
  33.     private static final long serialVersionUID = 1L;
  34.    
  35.     private int httpReturnCode;
  36.     private int govwayReturnCode;
  37.    
  38.     private boolean retry;
  39.     private int retryAfterSeconds = 60; // default
  40.     private int retryRandomBackoffSeconds = 0; // default
  41.    
  42.     private boolean genericDetails;
  43.    
  44.     public int getHttpReturnCode() {
  45.         return this.httpReturnCode;
  46.     }
  47.     public void setHttpReturnCode(int httpReturnCode) {
  48.         this.httpReturnCode = httpReturnCode;
  49.     }
  50.     public int getGovwayReturnCode() {
  51.         return this.govwayReturnCode;
  52.     }
  53.     public void setGovwayReturnCode(int govwayReturnCode) {
  54.         this.govwayReturnCode = govwayReturnCode;
  55.     }
  56.    
  57.     public boolean isRetry() {
  58.         return this.retry;
  59.     }
  60.     public void setRetry(boolean retry) {
  61.         this.retry = retry;
  62.     }
  63.     public int getRetryAfterSeconds() {
  64.         return this.retryAfterSeconds;
  65.     }
  66.     public void setRetryAfterSeconds(int retryAfterSeconds) {
  67.         this.retryAfterSeconds = retryAfterSeconds;
  68.     }
  69.     public int getRetryRandomBackoffSeconds() {
  70.         return this.retryRandomBackoffSeconds;
  71.     }
  72.     public void setRetryRandomBackoffSeconds(int retryRandomBackoffSeconds) {
  73.         this.retryRandomBackoffSeconds = retryRandomBackoffSeconds;
  74.     }
  75.    
  76.     public void setGenericDetails(boolean genericDetails) {
  77.         this.genericDetails = genericDetails;
  78.     }
  79.     public boolean isGenericDetails() {
  80.         return this.genericDetails;
  81.     }
  82. }