Package org.ch3ck3r.jgbx.responses

Examples of org.ch3ck3r.jgbx.responses.Response


              + "] which was not requested and is no callback.");
            continue;
          }
          this.responseQueue.remove(handle);
          try {
            final Response responseData = this.parser.responseFromXML(message, response.getResponseClass());
            logger.debug(responseData);
            response.putResponse(responseData);
          }
          catch (final JGBXException | JGBXFault e) {
            response.fail(e);
View Full Code Here


  public synchronized Response responseFromXML(final String xml, final Class<? extends Response> clazz)
    throws JGBXException, JGBXFault {
    try {
      this.reader.parse(new InputSource(new StringReader(xml)));
      if (this.handler.getMessageType() == MessageType.METHOD_RESPONSE) {
        final Response r = clazz.newInstance();
        r.setParams(this.handler.getParameters());
        return r;
      }
      else if (this.handler.getMessageType() == MessageType.FAULT) {
        @SuppressWarnings("unchecked")
        final Map<String, Object> map = (Map<String, Object>) this.handler.getParameters().get(0);
View Full Code Here

TOP

Related Classes of org.ch3ck3r.jgbx.responses.Response

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.