IntegrationErrorCollection.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.manifest;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlAttribute;
  24. import javax.xml.bind.annotation.XmlElement;
  25. import javax.xml.bind.annotation.XmlRootElement;
  26. import javax.xml.bind.annotation.XmlType;
  27. import org.openspcoop2.protocol.manifest.constants.IntegrationErrorProblemType;
  28. import java.io.Serializable;


  29. /** <p>Java class for IntegrationErrorCollection complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="IntegrationErrorCollection"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="rfc7807" type="{http://www.openspcoop2.org/protocol/manifest}RFC7807" minOccurs="0" maxOccurs="1"/&gt;
  37.  *          &lt;element name="authentication" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationError" minOccurs="0" maxOccurs="1"/&gt;
  38.  *          &lt;element name="authorization" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationError" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="notFound" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationError" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="badRequest" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationError" minOccurs="0" maxOccurs="1"/&gt;
  41.  *          &lt;element name="conflict" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationError" minOccurs="0" maxOccurs="1"/&gt;
  42.  *          &lt;element name="requestTooLarge" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationError" minOccurs="0" maxOccurs="1"/&gt;
  43.  *          &lt;element name="limitExceeded" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationError" minOccurs="0" maxOccurs="1"/&gt;
  44.  *          &lt;element name="tooManyRequests" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationError" minOccurs="0" maxOccurs="1"/&gt;
  45.  *          &lt;element name="serviceUnavailable" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationError" minOccurs="0" maxOccurs="1"/&gt;
  46.  *          &lt;element name="endpointRequestTimedOut" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationError" minOccurs="0" maxOccurs="1"/&gt;
  47.  *          &lt;element name="badResponse" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationError" minOccurs="0" maxOccurs="1"/&gt;
  48.  *          &lt;element name="internalRequestError" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationError" minOccurs="0" maxOccurs="1"/&gt;
  49.  *          &lt;element name="internalResponseError" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationError" minOccurs="0" maxOccurs="1"/&gt;
  50.  *          &lt;element name="default" type="{http://www.openspcoop2.org/protocol/manifest}DefaultIntegrationError" minOccurs="1" maxOccurs="1"/&gt;
  51.  *      &lt;/sequence&gt;
  52.  *      &lt;attribute name="problemType" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationErrorProblemType" use="required"/&gt;
  53.  *      &lt;attribute name="useInternalFault" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="false"/&gt;
  54.  * &lt;/complexType&gt;
  55.  * </pre>
  56.  *
  57.  * @version $Rev$, $Date$
  58.  *
  59.  * @author Poli Andrea (poli@link.it)
  60.  * @author $Author$
  61.  * */

  62. @XmlAccessorType(XmlAccessType.FIELD)
  63. @XmlType(name = "IntegrationErrorCollection",
  64.   propOrder = {
  65.     "rfc7807",
  66.     "authentication",
  67.     "authorization",
  68.     "notFound",
  69.     "badRequest",
  70.     "conflict",
  71.     "requestTooLarge",
  72.     "limitExceeded",
  73.     "tooManyRequests",
  74.     "serviceUnavailable",
  75.     "endpointRequestTimedOut",
  76.     "badResponse",
  77.     "internalRequestError",
  78.     "internalResponseError",
  79.     "_default"
  80.   }
  81. )

  82. @XmlRootElement(name = "IntegrationErrorCollection")

  83. public class IntegrationErrorCollection extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  84.   public IntegrationErrorCollection() {
  85.     super();
  86.   }

  87.   public RFC7807 getRfc7807() {
  88.     return this.rfc7807;
  89.   }

  90.   public void setRfc7807(RFC7807 rfc7807) {
  91.     this.rfc7807 = rfc7807;
  92.   }

  93.   public IntegrationError getAuthentication() {
  94.     return this.authentication;
  95.   }

  96.   public void setAuthentication(IntegrationError authentication) {
  97.     this.authentication = authentication;
  98.   }

  99.   public IntegrationError getAuthorization() {
  100.     return this.authorization;
  101.   }

  102.   public void setAuthorization(IntegrationError authorization) {
  103.     this.authorization = authorization;
  104.   }

  105.   public IntegrationError getNotFound() {
  106.     return this.notFound;
  107.   }

  108.   public void setNotFound(IntegrationError notFound) {
  109.     this.notFound = notFound;
  110.   }

  111.   public IntegrationError getBadRequest() {
  112.     return this.badRequest;
  113.   }

  114.   public void setBadRequest(IntegrationError badRequest) {
  115.     this.badRequest = badRequest;
  116.   }

  117.   public IntegrationError getConflict() {
  118.     return this.conflict;
  119.   }

  120.   public void setConflict(IntegrationError conflict) {
  121.     this.conflict = conflict;
  122.   }

  123.   public IntegrationError getRequestTooLarge() {
  124.     return this.requestTooLarge;
  125.   }

  126.   public void setRequestTooLarge(IntegrationError requestTooLarge) {
  127.     this.requestTooLarge = requestTooLarge;
  128.   }

  129.   public IntegrationError getLimitExceeded() {
  130.     return this.limitExceeded;
  131.   }

  132.   public void setLimitExceeded(IntegrationError limitExceeded) {
  133.     this.limitExceeded = limitExceeded;
  134.   }

  135.   public IntegrationError getTooManyRequests() {
  136.     return this.tooManyRequests;
  137.   }

  138.   public void setTooManyRequests(IntegrationError tooManyRequests) {
  139.     this.tooManyRequests = tooManyRequests;
  140.   }

  141.   public IntegrationError getServiceUnavailable() {
  142.     return this.serviceUnavailable;
  143.   }

  144.   public void setServiceUnavailable(IntegrationError serviceUnavailable) {
  145.     this.serviceUnavailable = serviceUnavailable;
  146.   }

  147.   public IntegrationError getEndpointRequestTimedOut() {
  148.     return this.endpointRequestTimedOut;
  149.   }

  150.   public void setEndpointRequestTimedOut(IntegrationError endpointRequestTimedOut) {
  151.     this.endpointRequestTimedOut = endpointRequestTimedOut;
  152.   }

  153.   public IntegrationError getBadResponse() {
  154.     return this.badResponse;
  155.   }

  156.   public void setBadResponse(IntegrationError badResponse) {
  157.     this.badResponse = badResponse;
  158.   }

  159.   public IntegrationError getInternalRequestError() {
  160.     return this.internalRequestError;
  161.   }

  162.   public void setInternalRequestError(IntegrationError internalRequestError) {
  163.     this.internalRequestError = internalRequestError;
  164.   }

  165.   public IntegrationError getInternalResponseError() {
  166.     return this.internalResponseError;
  167.   }

  168.   public void setInternalResponseError(IntegrationError internalResponseError) {
  169.     this.internalResponseError = internalResponseError;
  170.   }

  171.   public DefaultIntegrationError getDefault() {
  172.     return this._default;
  173.   }

  174.   public void setDefault(DefaultIntegrationError _default) {
  175.     this._default = _default;
  176.   }

  177.   public void setProblemTypeRawEnumValue(String value) {
  178.     this.problemType = (IntegrationErrorProblemType) IntegrationErrorProblemType.toEnumConstantFromString(value);
  179.   }

  180.   public String getProblemTypeRawEnumValue() {
  181.     if(this.problemType == null){
  182.         return null;
  183.     }else{
  184.         return this.problemType.toString();
  185.     }
  186.   }

  187.   public org.openspcoop2.protocol.manifest.constants.IntegrationErrorProblemType getProblemType() {
  188.     return this.problemType;
  189.   }

  190.   public void setProblemType(org.openspcoop2.protocol.manifest.constants.IntegrationErrorProblemType problemType) {
  191.     this.problemType = problemType;
  192.   }

  193.   public boolean isUseInternalFault() {
  194.     return this.useInternalFault;
  195.   }

  196.   public boolean getUseInternalFault() {
  197.     return this.useInternalFault;
  198.   }

  199.   public void setUseInternalFault(boolean useInternalFault) {
  200.     this.useInternalFault = useInternalFault;
  201.   }

  202.   private static final long serialVersionUID = 1L;



  203.   @XmlElement(name="rfc7807",required=false,nillable=false)
  204.   protected RFC7807 rfc7807;

  205.   @XmlElement(name="authentication",required=false,nillable=false)
  206.   protected IntegrationError authentication;

  207.   @XmlElement(name="authorization",required=false,nillable=false)
  208.   protected IntegrationError authorization;

  209.   @XmlElement(name="notFound",required=false,nillable=false)
  210.   protected IntegrationError notFound;

  211.   @XmlElement(name="badRequest",required=false,nillable=false)
  212.   protected IntegrationError badRequest;

  213.   @XmlElement(name="conflict",required=false,nillable=false)
  214.   protected IntegrationError conflict;

  215.   @XmlElement(name="requestTooLarge",required=false,nillable=false)
  216.   protected IntegrationError requestTooLarge;

  217.   @XmlElement(name="limitExceeded",required=false,nillable=false)
  218.   protected IntegrationError limitExceeded;

  219.   @XmlElement(name="tooManyRequests",required=false,nillable=false)
  220.   protected IntegrationError tooManyRequests;

  221.   @XmlElement(name="serviceUnavailable",required=false,nillable=false)
  222.   protected IntegrationError serviceUnavailable;

  223.   @XmlElement(name="endpointRequestTimedOut",required=false,nillable=false)
  224.   protected IntegrationError endpointRequestTimedOut;

  225.   @XmlElement(name="badResponse",required=false,nillable=false)
  226.   protected IntegrationError badResponse;

  227.   @XmlElement(name="internalRequestError",required=false,nillable=false)
  228.   protected IntegrationError internalRequestError;

  229.   @XmlElement(name="internalResponseError",required=false,nillable=false)
  230.   protected IntegrationError internalResponseError;

  231.   @XmlElement(name="default",required=true,nillable=false)
  232.   protected DefaultIntegrationError _default;

  233.   @javax.xml.bind.annotation.XmlTransient
  234.   protected java.lang.String problemTypeRawEnumValue;

  235.   @XmlAttribute(name="problemType",required=true)
  236.   protected IntegrationErrorProblemType problemType;

  237.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  238.   @XmlAttribute(name="useInternalFault",required=false)
  239.   protected boolean useInternalFault = false;

  240. }