Package jade.imtp.leap

Examples of jade.imtp.leap.ICPException


              return false;
            }
          }
          else {
            // Generic JICP error. No need to go on
            throw new ICPException("JICP error. "+errorMsg);
          }
        }
        return true;
      }
      catch (IOException ioe) {
View Full Code Here


      long startTime = System.currentTimeMillis();
      try
        while (!ping(attemptCnt)) {
          attemptCnt++;
          if ((System.currentTimeMillis() - startTime) > maxDisconnectionTime) {
            throw new ICPException("Max disconnection timeout expired");
          }
          else {
            waitABit(retryTime);
          }
        }
View Full Code Here

    try {
      hta = (HTTPAddress) ta;
    }
    catch (ClassCastException cce) {
      throw new ICPException("The TransportAddress "+ta.toString()+" is not an HTTP Address");
    }
   
    return hta.toString();
  }
View Full Code Here

  public TransportAddress stringToAddr(String s) throws ICPException {
    Vector  addressFields = parseURL(s);
    String protocol = (String) addressFields.elementAt(0);

    if (!NAME.equals(protocol)) {
      throw new ICPException("Unexpected protocol \""+protocol+"\" when \""+NAME+"\" was expected.");
    }

    String host = (String) addressFields.elementAt(1);
    String port = (String) addressFields.elementAt(2);
    String file = (String) addressFields.elementAt(3);
View Full Code Here

TOP

Related Classes of jade.imtp.leap.ICPException

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.