Package net.solosky.maplefetion.client

Examples of net.solosky.maplefetion.client.ResponseHandler


      //通知当前发送队列中的请求都超时
      synchronized (requestQueue) {
        Iterator<SipcRequest> it = this.requestQueue.iterator();
          while(it.hasNext()) {
            SipcRequest request = it.next();
            ResponseHandler handler = request.getResponseHandler();
            if(handler!=null) {
              if(ex==null){
                handler.timeout(request);
              }else if(ex instanceof TransferException){
                handler.ioerror(request);
              }else if(ex instanceof SystemException){
                handler.syserror(request, ex.getCause());
              }else{
                handler.timeout(request);
              }
            }
          }
      }
    }
View Full Code Here


      logger.warn("Request not found in response - response=" + response);
      return;
    }

    // 检查请求设置的处理器
    ResponseHandler handler = response.getRequest().getResponseHandler();
   
    if (handler == null) {
      logger.warn("ResponseHandler not found in request - response=" + response);
      return;
    }

    // 检查通过,处理这个回复
    try {
          handler.handle(response);
        } catch (FetionException e) {
          throw e;
        }catch(Throwable t) {
          throw new SystemException(t, response.getRequest(), response);
        }
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.client.ResponseHandler

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.