Package net.solosky.maplefetion.event.action.failure

Examples of net.solosky.maplefetion.event.action.failure.RequestFailureEvent


                break;
              case UNKNOWN_FAIL:
                System.out.println("发送失败, 不知道错在哪里。");
               
              case REQEUST_FAIL:
                RequestFailureEvent evt3 = (RequestFailureEvent) event;
                System.out.println("提示:"+evt3.getReason()+", 更多信息请访问:"+evt3.getReffer());
           
              default:
                println("发送消息失败!"+event.toString());
            }
           }else{
View Full Code Here


                break;
              case UNKNOWN_FAIL:
                System.out.println("发送失败, 不知道错在哪里。");
               
              case REQEUST_FAIL:
                RequestFailureEvent evt3 = (RequestFailureEvent) event;
                System.out.println("提示:"+evt3.getReason()+", 更多信息请访问:"+evt3.getReason());
               
              default:
                System.out.println("发送消息失败!"+event.toString());
            }
            break;
View Full Code Here

  protected ActionEvent doRequestFailure(SipcResponse response) throws FetionException {
    if(response.getBody()!=null){
      Element root = XMLHelper.build(response.getBody().toSendString());
      Element reason = root.getChild("reason");
      if(reason!=null){
        return new RequestFailureEvent(FailureType.REQEUST_FAIL,
            reason.getAttributeValue("text"),
            reason.getAttributeValue("refer-url"));
      }else{
        return new RequestFailureEvent(FailureType.REQEUST_FAIL, null, null);
      }
    }else{
      return new RequestFailureEvent(FailureType.REQEUST_FAIL, null, null);
    }
  }
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.event.action.failure.RequestFailureEvent

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.