MtomXomReference.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.soap.mtom;

  21. import javax.xml.namespace.QName;

  22. import org.w3c.dom.Node;

  23. /**
  24.  * MtomXomReference
  25.  *
  26.  * @author Andrea Poli (apoli@link.it)
  27.  * @author $Author$
  28.  * @version $Rev$, $Date$
  29.  */
  30. public class MtomXomReference {

  31.     private QName nodeName;
  32.     private Node node;
  33.     private Node xomReference;
  34.     private String contentId;
  35.    
  36.     public QName getNodeName() {
  37.         return this.nodeName;
  38.     }
  39.     public void setNodeName(QName nodeName) {
  40.         this.nodeName = nodeName;
  41.     }
  42.     public Node getNode() {
  43.         return this.node;
  44.     }
  45.     public void setNode(Node node) {
  46.         this.node = node;
  47.     }
  48.     public Node getXomReference() {
  49.         return this.xomReference;
  50.     }
  51.     public void setXomReference(Node xomReference) {
  52.         this.xomReference = xomReference;
  53.     }
  54.     public String getContentId() {
  55.         return this.contentId;
  56.     }
  57.     public void setContentId(String contentId) {
  58.         this.contentId = contentId;
  59.     }
  60.    
  61.     @Override
  62.     public String toString(){
  63.         StringBuilder bf = new StringBuilder();
  64.         bf.append("NodeName[").append(this.nodeName).append("]");
  65.         bf.append(" ContentId[").append(this.contentId).append("]");
  66.         return bf.toString();
  67.     }
  68. }