Package org.ch3ck3r.jgbx.callbacks

Examples of org.ch3ck3r.jgbx.callbacks.Callback


          }
        }
        else {
          // received callback
          logger.debug("Received callback: [" + length + "] [" + handle + "] " + message);
          final Callback callbackData = this.parser.callbackFromXML(message);
          logger.debug(callbackData);
        }
      }
      catch (final Throwable e) {
        if (!this.shouldExit) {
View Full Code Here


   */
  public synchronized Callback callbackFromXML(final String xml) throws JGBXException, JGBXFault {
    try {
      this.reader.parse(new InputSource(new StringReader(xml)));
      if (this.handler.getMessageType() == MessageType.METHOD_CALL) {
        return new Callback(this.handler.getMethodName(), this.handler.getParameters());
      }
      else if (this.handler.getMessageType() == MessageType.FAULT) {
        @SuppressWarnings("unchecked")
        final Map<String, Object> map = (Map<String, Object>) this.handler.getParameters().get(0);
        throw new JGBXFault((Integer) map.get("faultCode"), (String) map.get("faultString"));
View Full Code Here

TOP

Related Classes of org.ch3ck3r.jgbx.callbacks.Callback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.