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

  46. @XmlAccessorType(XmlAccessType.FIELD)
  47. @XmlType(name = "forced-response",
  48.   propOrder = {
  49.     "responseCode",
  50.     "emptyResponse",
  51.     "responseMessage"
  52.   }
  53. )

  54. @XmlRootElement(name = "forced-response")

  55. public class ForcedResponse extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  56.   public ForcedResponse() {
  57.     super();
  58.   }

  59.   public java.lang.String getResponseCode() {
  60.     return this.responseCode;
  61.   }

  62.   public void setResponseCode(java.lang.String responseCode) {
  63.     this.responseCode = responseCode;
  64.   }

  65.   public boolean isEmptyResponse() {
  66.     return this.emptyResponse;
  67.   }

  68.   public boolean getEmptyResponse() {
  69.     return this.emptyResponse;
  70.   }

  71.   public void setEmptyResponse(boolean emptyResponse) {
  72.     this.emptyResponse = emptyResponse;
  73.   }

  74.   public ForcedResponseMessage getResponseMessage() {
  75.     return this.responseMessage;
  76.   }

  77.   public void setResponseMessage(ForcedResponseMessage responseMessage) {
  78.     this.responseMessage = responseMessage;
  79.   }

  80.   private static final long serialVersionUID = 1L;



  81.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  82.   @XmlElement(name="response-code",required=false,nillable=false)
  83.   protected java.lang.String responseCode;

  84.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  85.   @XmlElement(name="empty-response",required=false,nillable=false)
  86.   protected boolean emptyResponse;

  87.   @XmlElement(name="response-message",required=false,nillable=false)
  88.   protected ForcedResponseMessage responseMessage;

  89. }