예제 #1
0
 public void clearTransports() {
   try {
     _upaBroker.clearTransports();
   } catch (WebServiceException wse) {
     handleException(wse);
     _upaBroker.clearTransports();
   }
 }
예제 #2
0
  public List<TransportView> listScheduleTransports() {
    List<TransportView> result = null;

    try {
      result = _upaBroker.listTransports();
    } catch (WebServiceException wse) {
      handleException(wse);
      result = _upaBroker.listTransports();
    }

    return result;
  }
예제 #3
0
  public TransportView checkTransportState(String id) throws UnknownTransportFault_Exception {
    TransportView result = null;

    try {
      result = _upaBroker.viewTransport(id);
    } catch (WebServiceException wse) {
      handleException(wse);
      result = _upaBroker.viewTransport(id);
    }

    return result;
  }
예제 #4
0
  public String ping(String msg) {
    String result = "";

    try {
      result = _upaBroker.ping(msg);
    } catch (WebServiceException wse) {
      handleException(wse);
      result = _upaBroker.ping(msg);
    }

    return result;
  }
예제 #5
0
  public String schedule(String origin, String destination, int price)
      throws InvalidPriceFault_Exception, UnavailableTransportFault_Exception,
          UnavailableTransportPriceFault_Exception, UnknownLocationFault_Exception {

    String result = "";

    try {
      result = _upaBroker.requestTransport(origin, destination, price);
    } catch (WebServiceException wse) {
      handleException(wse);
      result = _upaBroker.requestTransport(origin, destination, price);
    }

    return result;
  }