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

📄 xmlrpccallbackimpl.java

📁 java开源的企业总线.xmlBlaster
💻 JAVA
字号:
/*------------------------------------------------------------------------------Name:      XmlRpcCallbackImpl.javaProject:   xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE fileComment:   Helper to connect to xmlBlaster using IIOPVersion:   $Id: XmlRpcCallbackImpl.java 12937 2004-11-24 20:15:11Z ruff $Author:    xmlBlaster@marcelruff.info------------------------------------------------------------------------------*/package org.xmlBlaster.client.protocol.xmlrpc;import org.xmlBlaster.client.protocol.I_CallbackExtended;import org.xmlBlaster.util.XmlBlasterException;import org.xmlBlaster.util.qos.address.CallbackAddress;import org.xmlBlaster.client.qos.UpdateQos;import org.xmlBlaster.client.key.UpdateKey;import org.apache.xmlrpc.WebServer;/** * The methods of this callback class are exposed to XMLRPC clients, * in this case to xmlBlaster when it wants to callback the client. * <p /> * @author <a href="mailto:xmlBlaster@marcelruff.info">Marcel Ruff</a>. */public class XmlRpcCallbackImpl{   private final String ME = "XmlRpcCallbackImpl";   private XmlRpcCallbackServer server = null;   /**    * Construct a persistently named object.    * @param client    Your implementation of I_CallbackExtended, or null if you don't want any updates.    */   XmlRpcCallbackImpl(XmlRpcCallbackServer server) throws XmlBlasterException   {      this.server = server;   }   /**    * The update method.    * <p />    * Gets invoked from xmlBlaster callback    * @param sessionId A sessionId which we can decide if we trust it    *                  This id is the one specified from the client which has setup the callback.    */   public String update(String cbSessionId, String updateKey, byte[] content,                      String updateQos) throws XmlBlasterException   {      return server.update(cbSessionId, updateKey, content, updateQos);   }   /**    * The 'oneway' update method.     * <p />    * oneway is not natively supported by XmlRpc    * <p />    * Gets invoked from XmlRpcCallbackImpl.java (which was called by xmlBlaster)    */   public void updateOneway(String cbSessionId, String updateKey, byte[] content, String updateQos)   {      server.updateOneway(cbSessionId, updateKey, content, updateQos);   }   /**    * Ping to check if the callback server is alive.     * @see org.xmlBlaster.protocol.I_CallbackDriver#ping(String)    */   public String ping(String str)   {      return server.ping(str);   }} // class XmlRpcCallbackImpl

⌨️ 快捷键说明

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