Package com.tuscanyscatours.common

Examples of com.tuscanyscatours.common.TripLeg


    @Reference
    protected Calendar calendarLocal;

    public void run() {
        System.out.println("\nCalling calendar component over a local binding");
        TripLeg tripLeg = getTestTripLeg();
        String toDate = calendarLocal.getEndDate(tripLeg.getFromDate(), 10);
        tripLeg.setToDate(toDate);
        System.out.println("Calculated trip end date - " + toDate);
        ;
    }
View Full Code Here


        System.out.println("Calculated trip end date - " + toDate);
        ;
    }

    private TripLeg getTestTripLeg() {
        TripLeg tripLeg = new TripLeg();
        tripLeg.setFromLocation("LGW");
        tripLeg.setToLocation("FLR");
        tripLeg.setFromDate("06/12/09 00:00");
        tripLeg.setToDate("13/12/09 00:00");
        tripLeg.setNoOfPeople("1");
        tripLeg.setId("TRIP27");
        return tripLeg;
    }
View Full Code Here

    @Reference
    protected Search hotelSearchRemote;

    public void run() {
        System.out.println("\nCalling hotel component over a remote binding");
        TripLeg tripLeg = getTestTripLeg();
        TripItem[] tripItems = hotelSearchRemote.searchSynch(tripLeg);
        for (TripItem tripItem : tripItems) {
            System.out.println("Found hotel - " + tripItem.getName());
        }
    }
View Full Code Here

    public void setPercentComplete(String searchComponent, int percentComplete) {
        // Not used in this sample
    }

    private TripLeg getTestTripLeg() {
        TripLeg tripLeg = new TripLeg();
        tripLeg.setFromLocation("LGW");
        tripLeg.setToLocation("FLR");
        tripLeg.setFromDate("06/12/09 00:00");
        tripLeg.setToDate("13/12/09 00:00");
        tripLeg.setNoOfPeople("1");
        tripLeg.setId("TRIP27");
        return tripLeg;
    }
View Full Code Here

    CountDownLatch resultsReceivedCountdown;

    public void run() {
        System.out.println("\nCalling hotel component using both one way and callback interation patterns");
        resultsReceivedCountdown = new CountDownLatch(1);
        TripLeg tripLeg = getTestTripLeg();
        hotelSearchOneWayCallback.searchAsynch(tripLeg);

        // start other searched here while the hotel search progresses

        // wait for responses to come back
View Full Code Here

    public void setPercentComplete(String searchComponent, int percentComplete) {
        // Not used in this sample
    }

    private TripLeg getTestTripLeg() {
        TripLeg tripLeg = new TripLeg();
        tripLeg.setFromLocation("LGW");
        tripLeg.setToLocation("FLR");
        tripLeg.setFromDate("06/12/09 00:00");
        tripLeg.setToDate("13/12/09 00:00");
        tripLeg.setNoOfPeople("1");
        tripLeg.setId("TRIP27");
        return tripLeg;
    }
View Full Code Here

TOP

Related Classes of com.tuscanyscatours.common.TripLeg

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.