RestConfiguration.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 java.io.Serializable;


  28. /** <p>Java class for RestConfiguration complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="RestConfiguration"&gt;
  34.  *      &lt;sequence&gt;
  35.  *          &lt;element name="integration" type="{http://www.openspcoop2.org/protocol/manifest}Integration" minOccurs="1" maxOccurs="1"/&gt;
  36.  *          &lt;element name="integrationError" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationErrorConfiguration" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="mediaTypeCollection" type="{http://www.openspcoop2.org/protocol/manifest}RestMediaTypeCollection" minOccurs="0" maxOccurs="1"/&gt;
  38.  *          &lt;element name="interfaces" type="{http://www.openspcoop2.org/protocol/manifest}InterfacesConfiguration" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="profile" type="{http://www.openspcoop2.org/protocol/manifest}RestCollaborationProfile" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="functionality" type="{http://www.openspcoop2.org/protocol/manifest}Functionality" minOccurs="0" maxOccurs="1"/&gt;
  41.  *      &lt;/sequence&gt;
  42.  *      &lt;attribute name="xml" type="{http://www.w3.org/2001/XMLSchema}boolean" use="required"/&gt;
  43.  *      &lt;attribute name="json" type="{http://www.w3.org/2001/XMLSchema}boolean" use="required"/&gt;
  44.  *      &lt;attribute name="binary" type="{http://www.w3.org/2001/XMLSchema}boolean" use="required"/&gt;
  45.  *      &lt;attribute name="mimeMultipart" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="false"/&gt;
  46.  * &lt;/complexType&gt;
  47.  * </pre>
  48.  *
  49.  * @version $Rev$, $Date$
  50.  *
  51.  * @author Poli Andrea (poli@link.it)
  52.  * @author $Author$
  53.  * */

  54. @XmlAccessorType(XmlAccessType.FIELD)
  55. @XmlType(name = "RestConfiguration",
  56.   propOrder = {
  57.     "integration",
  58.     "integrationError",
  59.     "mediaTypeCollection",
  60.     "interfaces",
  61.     "profile",
  62.     "functionality"
  63.   }
  64. )

  65. @XmlRootElement(name = "RestConfiguration")

  66. public class RestConfiguration extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  67.   public RestConfiguration() {
  68.     super();
  69.   }

  70.   public Integration getIntegration() {
  71.     return this.integration;
  72.   }

  73.   public void setIntegration(Integration integration) {
  74.     this.integration = integration;
  75.   }

  76.   public IntegrationErrorConfiguration getIntegrationError() {
  77.     return this.integrationError;
  78.   }

  79.   public void setIntegrationError(IntegrationErrorConfiguration integrationError) {
  80.     this.integrationError = integrationError;
  81.   }

  82.   public RestMediaTypeCollection getMediaTypeCollection() {
  83.     return this.mediaTypeCollection;
  84.   }

  85.   public void setMediaTypeCollection(RestMediaTypeCollection mediaTypeCollection) {
  86.     this.mediaTypeCollection = mediaTypeCollection;
  87.   }

  88.   public InterfacesConfiguration getInterfaces() {
  89.     return this.interfaces;
  90.   }

  91.   public void setInterfaces(InterfacesConfiguration interfaces) {
  92.     this.interfaces = interfaces;
  93.   }

  94.   public RestCollaborationProfile getProfile() {
  95.     return this.profile;
  96.   }

  97.   public void setProfile(RestCollaborationProfile profile) {
  98.     this.profile = profile;
  99.   }

  100.   public Functionality getFunctionality() {
  101.     return this.functionality;
  102.   }

  103.   public void setFunctionality(Functionality functionality) {
  104.     this.functionality = functionality;
  105.   }

  106.   public boolean isXml() {
  107.     return this.xml;
  108.   }

  109.   public boolean getXml() {
  110.     return this.xml;
  111.   }

  112.   public void setXml(boolean xml) {
  113.     this.xml = xml;
  114.   }

  115.   public boolean isJson() {
  116.     return this.json;
  117.   }

  118.   public boolean getJson() {
  119.     return this.json;
  120.   }

  121.   public void setJson(boolean json) {
  122.     this.json = json;
  123.   }

  124.   public boolean isBinary() {
  125.     return this.binary;
  126.   }

  127.   public boolean getBinary() {
  128.     return this.binary;
  129.   }

  130.   public void setBinary(boolean binary) {
  131.     this.binary = binary;
  132.   }

  133.   public boolean isMimeMultipart() {
  134.     return this.mimeMultipart;
  135.   }

  136.   public boolean getMimeMultipart() {
  137.     return this.mimeMultipart;
  138.   }

  139.   public void setMimeMultipart(boolean mimeMultipart) {
  140.     this.mimeMultipart = mimeMultipart;
  141.   }

  142.   private static final long serialVersionUID = 1L;



  143.   @XmlElement(name="integration",required=true,nillable=false)
  144.   protected Integration integration;

  145.   @XmlElement(name="integrationError",required=true,nillable=false)
  146.   protected IntegrationErrorConfiguration integrationError;

  147.   @XmlElement(name="mediaTypeCollection",required=false,nillable=false)
  148.   protected RestMediaTypeCollection mediaTypeCollection;

  149.   @XmlElement(name="interfaces",required=false,nillable=false)
  150.   protected InterfacesConfiguration interfaces;

  151.   @XmlElement(name="profile",required=false,nillable=false)
  152.   protected RestCollaborationProfile profile;

  153.   @XmlElement(name="functionality",required=false,nillable=false)
  154.   protected Functionality functionality;

  155.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  156.   @XmlAttribute(name="xml",required=true)
  157.   protected boolean xml;

  158.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  159.   @XmlAttribute(name="json",required=true)
  160.   protected boolean json;

  161.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  162.   @XmlAttribute(name="binary",required=true)
  163.   protected boolean binary;

  164.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  165.   @XmlAttribute(name="mimeMultipart",required=false)
  166.   protected boolean mimeMultipart = false;

  167. }