RFC7807.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.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import java.io.Serializable;


  27. /** <p>Java class for RFC7807 complex type.
  28.  *
  29.  * <p>The following schema fragment specifies the expected content contained within this class.
  30.  *
  31.  * <pre>
  32.  * &lt;complexType name="RFC7807"&gt;
  33.  *      &lt;attribute name="useAcceptHeader" type="{http://www.w3.org/2001/XMLSchema}boolean" use="required"/&gt;
  34.  *      &lt;attribute name="details" type="{http://www.w3.org/2001/XMLSchema}boolean" use="required"/&gt;
  35.  *      &lt;attribute name="instance" type="{http://www.w3.org/2001/XMLSchema}boolean" use="required"/&gt;
  36.  *      &lt;attribute name="govwayType" type="{http://www.w3.org/2001/XMLSchema}boolean" use="required"/&gt;
  37.  *      &lt;attribute name="govwayStatus" type="{http://www.w3.org/2001/XMLSchema}boolean" use="required"/&gt;
  38.  *      &lt;attribute name="govwayTransactionId" type="{http://www.w3.org/2001/XMLSchema}boolean" use="required"/&gt;
  39.  *      &lt;attribute name="type" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="true"/&gt;
  40.  *      &lt;attribute name="typeFormat" type="{http://www.w3.org/2001/XMLSchema}string" use="optional" default="https://httpstatuses.com/%d"/&gt;
  41.  * &lt;/complexType&gt;
  42.  * </pre>
  43.  *
  44.  * @version $Rev$, $Date$
  45.  *
  46.  * @author Poli Andrea (poli@link.it)
  47.  * @author $Author$
  48.  * */

  49. @XmlAccessorType(XmlAccessType.FIELD)
  50. @XmlType(name = "RFC7807")

  51. @XmlRootElement(name = "RFC7807")

  52. public class RFC7807 extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  53.   public RFC7807() {
  54.     super();
  55.   }

  56.   public boolean isUseAcceptHeader() {
  57.     return this.useAcceptHeader;
  58.   }

  59.   public boolean getUseAcceptHeader() {
  60.     return this.useAcceptHeader;
  61.   }

  62.   public void setUseAcceptHeader(boolean useAcceptHeader) {
  63.     this.useAcceptHeader = useAcceptHeader;
  64.   }

  65.   public boolean isDetails() {
  66.     return this.details;
  67.   }

  68.   public boolean getDetails() {
  69.     return this.details;
  70.   }

  71.   public void setDetails(boolean details) {
  72.     this.details = details;
  73.   }

  74.   public boolean isInstance() {
  75.     return this.instance;
  76.   }

  77.   public boolean getInstance() {
  78.     return this.instance;
  79.   }

  80.   public void setInstance(boolean instance) {
  81.     this.instance = instance;
  82.   }

  83.   public boolean isGovwayType() {
  84.     return this.govwayType;
  85.   }

  86.   public boolean getGovwayType() {
  87.     return this.govwayType;
  88.   }

  89.   public void setGovwayType(boolean govwayType) {
  90.     this.govwayType = govwayType;
  91.   }

  92.   public boolean isGovwayStatus() {
  93.     return this.govwayStatus;
  94.   }

  95.   public boolean getGovwayStatus() {
  96.     return this.govwayStatus;
  97.   }

  98.   public void setGovwayStatus(boolean govwayStatus) {
  99.     this.govwayStatus = govwayStatus;
  100.   }

  101.   public boolean isGovwayTransactionId() {
  102.     return this.govwayTransactionId;
  103.   }

  104.   public boolean getGovwayTransactionId() {
  105.     return this.govwayTransactionId;
  106.   }

  107.   public void setGovwayTransactionId(boolean govwayTransactionId) {
  108.     this.govwayTransactionId = govwayTransactionId;
  109.   }

  110.   public boolean isType() {
  111.     return this.type;
  112.   }

  113.   public boolean getType() {
  114.     return this.type;
  115.   }

  116.   public void setType(boolean type) {
  117.     this.type = type;
  118.   }

  119.   public java.lang.String getTypeFormat() {
  120.     return this.typeFormat;
  121.   }

  122.   public void setTypeFormat(java.lang.String typeFormat) {
  123.     this.typeFormat = typeFormat;
  124.   }

  125.   private static final long serialVersionUID = 1L;



  126.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  127.   @XmlAttribute(name="useAcceptHeader",required=true)
  128.   protected boolean useAcceptHeader;

  129.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  130.   @XmlAttribute(name="details",required=true)
  131.   protected boolean details;

  132.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  133.   @XmlAttribute(name="instance",required=true)
  134.   protected boolean instance;

  135.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  136.   @XmlAttribute(name="govwayType",required=true)
  137.   protected boolean govwayType;

  138.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  139.   @XmlAttribute(name="govwayStatus",required=true)
  140.   protected boolean govwayStatus;

  141.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  142.   @XmlAttribute(name="govwayTransactionId",required=true)
  143.   protected boolean govwayTransactionId;

  144.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  145.   @XmlAttribute(name="type",required=false)
  146.   protected boolean type = true;

  147.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  148.   @XmlAttribute(name="typeFormat",required=false)
  149.   protected java.lang.String typeFormat = "https://httpstatuses.com/%d";

  150. }