msgholder.java

来自「java开源的企业总线.xmlBlaster」· Java 代码 · 共 53 行

JAVA
53
字号
/*------------------------------------------------------------------------------Name:      MsgHolder.javaProject:   xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE file------------------------------------------------------------------------------*/package org.xmlBlaster.client.protocol.http.common;/** * MsgHolder is a placeholder for the messages to be sent to xmlBlaster, i.e. * the requests to xmlBlaster. *  * @author <a href="mailto:michele@laghi.eu">Michele Laghi</a> */public class MsgHolder {   private final String oid;   private final String key;   private final String qos;   private final byte[] content;   /**    *     * @param oid the oid to be passed or null    * @param key the key of the message or null    * @param qos the qos or null    * @param content the content or null    */   public MsgHolder(String oid, String key, String qos, byte[] content) {      this.oid = oid;      this.key = key;      this.qos = qos;      this.content = content;   }      public String getOid() {      return this.oid;   }      public String getKey() {      return this.key;   }      public String getQos() {      return this.qos;   }      public byte[] getContent() {      return this.content;   }   }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?