TransportResponseContext.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.context;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import java.io.Serializable;


  27. /** <p>Java class for transport-response-context complex type.
  28.  *
  29.  * <p>The following schema fragment specifies the expected content contained within this class.
  30.  *
  31.  * <pre>
  32.  * &lt;complexType name="transport-response-context"&gt;
  33.  *      &lt;sequence&gt;
  34.  *          &lt;element name="header-parameters" type="{http://www.openspcoop2.org/message/context}header-parameters" minOccurs="0" maxOccurs="1"/&gt;
  35.  *          &lt;element name="transport-code" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  36.  *          &lt;element name="content-length" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" minOccurs="0" maxOccurs="1"/&gt;
  37.  *          &lt;element name="error" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  38.  *      &lt;/sequence&gt;
  39.  * &lt;/complexType&gt;
  40.  * </pre>
  41.  *
  42.  * @version $Rev$, $Date$
  43.  *
  44.  * @author Poli Andrea (poli@link.it)
  45.  * @author $Author$
  46.  * */

  47. @XmlAccessorType(XmlAccessType.FIELD)
  48. @XmlType(name = "transport-response-context",
  49.   propOrder = {
  50.     "headerParameters",
  51.     "transportCode",
  52.     "contentLength",
  53.     "error"
  54.   }
  55. )

  56. @XmlRootElement(name = "transport-response-context")

  57. public class TransportResponseContext extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  58.   public TransportResponseContext() {
  59.     super();
  60.   }

  61.   public HeaderParameters getHeaderParameters() {
  62.     return this.headerParameters;
  63.   }

  64.   public void setHeaderParameters(HeaderParameters headerParameters) {
  65.     this.headerParameters = headerParameters;
  66.   }

  67.   public java.lang.String getTransportCode() {
  68.     return this.transportCode;
  69.   }

  70.   public void setTransportCode(java.lang.String transportCode) {
  71.     this.transportCode = transportCode;
  72.   }

  73.   public java.lang.Long getContentLength() {
  74.     return this.contentLength;
  75.   }

  76.   public void setContentLength(java.lang.Long contentLength) {
  77.     this.contentLength = contentLength;
  78.   }

  79.   public java.lang.String getError() {
  80.     return this.error;
  81.   }

  82.   public void setError(java.lang.String error) {
  83.     this.error = error;
  84.   }

  85.   private static final long serialVersionUID = 1L;



  86.   @XmlElement(name="header-parameters",required=false,nillable=false)
  87.   protected HeaderParameters headerParameters;

  88.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  89.   @XmlElement(name="transport-code",required=false,nillable=false)
  90.   protected java.lang.String transportCode;

  91.   @javax.xml.bind.annotation.XmlSchemaType(name="unsignedLong")
  92.   @XmlElement(name="content-length",required=false,nillable=false)
  93.   protected java.lang.Long contentLength;

  94.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  95.   @XmlElement(name="error",required=false,nillable=false)
  96.   protected java.lang.String error;

  97. }