⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clientproperty.java

📁 java开源的企业总线.xmlBlaster
💻 JAVA
字号:
/*------------------------------------------------------------------------------Name:      ClientProperty.javaProject:   xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE fileComment:   Handling one client property of QosData------------------------------------------------------------------------------*/package org.xmlBlaster.util.qos;import org.xmlBlaster.util.EncodableData;import org.xmlBlaster.util.Global;/** * This class encapsulates one client property in a QoS.  * <p/> * Examples: * <pre> *&lt;clientProperty name='transactionId' type='int'>120001&lt;/clientProperty> *&lt;clientProperty name='myKey'>Hello World&lt;/clientProperty> *&lt;clientProperty name='myBlob' type='byte[]' encoding='base64'>OKFKAL==&lt;/clientProperty> * </pre> * If the attribute <code>type</code> is missing we assume a 'String' property * * @see <a href="http://www.xmlblaster.org/xmlBlaster/doc/requirements/engine.qos.clientProperty.html">The client.qos.clientProperty requirement</a> * @see org.xmlBlaster.test.classtest.ClientPropertyTest * @see org.xmlBlaster.test.qos.TestClientProperty */public final class ClientProperty extends EncodableData{   private static final long serialVersionUID = 6415499809321164696L;   /** Typically used tag name for plugin attributes */   public static final String ATTRIBUTE_TAG = "attribute";   /** Typicall used tag name for subscribeQos and other Qos */   public static final String CLIENTPROPERTY_TAG = "clientProperty";   /**    * @param name  The unique property key    * @param type The data type of the value    * @param encoding null or Constants.ENCODING_BASE64="base64"    * @deprecated you should use the constructors with no global    */   public ClientProperty(Global glob, String name, String type, String encoding) {      super("clientProperty", name, type, encoding);      ME = "ClientProperty";   }   /**    * @param name  The unique property key    * @param type The data type of the value    * @param encoding null or Constants.ENCODING_BASE64="base64"    */   public ClientProperty(String name, String type, String encoding) {      super("clientProperty", name, type, encoding);      ME = "ClientProperty";   }   /**    * @param name  The unique property key    * @param type The data type of the value    * @param encoding null or Constants.ENCODING_BASE64="base64"    * @deprecated you should use the alternative with no global.    */   public ClientProperty(Global glob, String name, String type, String encoding, String value) {      super("clientProperty", name, type, encoding, value);      ME = "ClientProperty";   }   /**    * @param name  The unique property key    * @param type The data type of the value    * @param encoding null or Constants.ENCODING_BASE64="base64"    * @param value The original value (not yet encoded!)    */   public ClientProperty(String name, String type, String encoding, String value) {      super("clientProperty", name, type, encoding, value);      ME = "ClientProperty";   }   /**    * Set binary data, will be of type "byte[]" and base64 encoded    * @param name  The unique property key    * @param value The binary data    */   public ClientProperty(String name, byte[] value) {      super("clientProperty", name, value);      ME = "ClientProperty";   }   public String toString() {      return getStringValue();   }}

⌨️ 快捷键说明

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