com.xtravelsystem.online.published.V1_0RC1.common
Class CommonsHandlerImpl

java.lang.Object
  extended by com.jumbotours.util.AbstractJWSDPWebService
      extended by com.xtravelsystem.online.published.V1_0RC1.common.CommonsHandlerImpl
All Implemented Interfaces:
CommonsHandler, java.rmi.Remote

public class CommonsHandlerImpl
extends com.jumbotours.util.AbstractJWSDPWebService
implements CommonsHandler

in this class you can find common utility methods. Basically any method that is not particular of any service.

Author:
Miguel P�rez

Constructor Summary
CommonsHandlerImpl()
           
 
Method Summary
 GetAirportsRS getAirports(GetAirportsRQ rq)
          method to retrieve airports and the resorts / zones that you can access from that airport.
 GetAirportTypesRS getAirportTypes(GetAirportTypesRQ rq)
          method to retrieve airport types.
 GetAreasRS getAreas(GetAreasRQ rq)
          method to retrieve an areas tree.
 GetAreasRSV12 getAreasV12(GetAreasRQV12 rq)
          method to retrieve an areas tree and the sections if they have.
 GetCitiesRS getCities(GetCitiesRQ rq)
          method to retrieve a list with all the cities
 GetCitiesWithAvailabilityRS getCitiesWithAvailability(GetCitiesWithAvailabilityRQ rq)
          method to retrieve a list with all available cities of a country
 GetCountriesRS getCountries(GetCountriesRQ rq)
          method to retrieve a list with all the countries
 GetEventsRS GetEventsByArea(GetEventsByAreaRQ rq)
          method to retrive the events associated to an area inside a range of dates.
 GetEventsRS GetEventsByCity(GetEventsByCityRQ rq)
          method to retrive the events associated to a city inside a range of dates.
 GetGeographicalMapRS getGeographicalMap(GetGeographicalMapRQ rq)
          method to retrieve the geografical tree.
 GetOffersRS GetOffers(GetOffersRQ rq)
          method to retrive the offers contained in a offers board
 GetProductRS getProduct(GetProductRQ rq)
          method to get the product tree associated to a particular service.
 GetSectionsRS getSections(GetSectionsRQ rq)
           
 GetServicesRS getServices(GetServicesRQ rq)
          method to retrive the list of available services.
 GetVehiclesRS getVehiclesTypes(GetVehiclesRQ rq)
           
static void main(java.lang.String[] args)
           
 PingRS ping(PingRQ rq)
          method to test your agency status (enabled or disabled) and to easilly test that the system is working.
 long pingDispo(AvailableHotelsCompatibilityQueryRQ rq)
           
 
Methods inherited from class com.jumbotours.util.AbstractJWSDPWebService
destroy, getHttpRequest, getHttpResponse, getMessageContext, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsHandlerImpl

public CommonsHandlerImpl()
Method Detail

getGeographicalMap

public GetGeographicalMapRS getGeographicalMap(GetGeographicalMapRQ rq)
                                        throws java.rmi.RemoteException
method to retrieve the geografical tree. We mean continent --> country --> state --> city.

Specified by:
getGeographicalMap in interface CommonsHandler
Throws:
java.rmi.RemoteException

getCountries

public GetCountriesRS getCountries(GetCountriesRQ rq)
                            throws java.rmi.RemoteException
method to retrieve a list with all the countries

Specified by:
getCountries in interface CommonsHandler
Throws:
java.rmi.RemoteException

getCities

public GetCitiesRS getCities(GetCitiesRQ rq)
                      throws java.rmi.RemoteException
method to retrieve a list with all the cities

Specified by:
getCities in interface CommonsHandler
Throws:
java.rmi.RemoteException

getAreas

public GetAreasRS getAreas(GetAreasRQ rq)
                    throws java.rmi.RemoteException
method to retrieve an areas tree.

Over the geografical tree, we have constructed an areas tree that represent sets of cities, states.

Specified by:
getAreas in interface CommonsHandler
Throws:
java.rmi.RemoteException

getAirports

public GetAirportsRS getAirports(GetAirportsRQ rq)
                          throws java.rmi.RemoteException
method to retrieve airports and the resorts / zones that you can access from that airport.
You will need this when dealing with transfers

Specified by:
getAirports in interface CommonsHandler
Throws:
java.rmi.RemoteException

getAirportTypes

public GetAirportTypesRS getAirportTypes(GetAirportTypesRQ rq)
                                  throws java.rmi.RemoteException
Description copied from interface: CommonsHandler
method to retrieve airport types.
You will need this when dealing with transfers

Specified by:
getAirportTypes in interface CommonsHandler
Throws:
java.rmi.RemoteException

GetEventsByArea

public GetEventsRS GetEventsByArea(GetEventsByAreaRQ rq)
                            throws java.rmi.RemoteException
method to retrive the events associated to an area inside a range of dates. Usually here we put special events that can affect your booking, e.g. a Rolling Stones concert can notice you that you will be in trouble to find a good allotment, etc

Specified by:
GetEventsByArea in interface CommonsHandler
Throws:
java.rmi.RemoteException

GetEventsByCity

public GetEventsRS GetEventsByCity(GetEventsByCityRQ rq)
                            throws java.rmi.RemoteException
method to retrive the events associated to a city inside a range of dates. Usually here we put special events that can affect your booking, e.g. a Rolling Stones concert can notice you that you will be in trouble to find a good allotment, etc

Specified by:
GetEventsByCity in interface CommonsHandler
Throws:
java.rmi.RemoteException

pingDispo

public long pingDispo(AvailableHotelsCompatibilityQueryRQ rq)
               throws java.rmi.RemoteException
Specified by:
pingDispo in interface CommonsHandler
Throws:
java.rmi.RemoteException

ping

public PingRS ping(PingRQ rq)
            throws java.rmi.RemoteException
method to test your agency status (enabled or disabled) and to easilly test that the system is working.
Just like a Hello world!

Specified by:
ping in interface CommonsHandler
Throws:
java.rmi.RemoteException

getProduct

public GetProductRS getProduct(GetProductRQ rq)
                        throws java.rmi.RemoteException
method to get the product tree associated to a particular service. To make your selection easier, we have divided our product in sets.

Specified by:
getProduct in interface CommonsHandler
Throws:
java.rmi.RemoteException

getServices

public GetServicesRS getServices(GetServicesRQ rq)
                          throws java.rmi.RemoteException
method to retrive the list of available services. E.g. hotel, rentacar, transfer and excursions

Specified by:
getServices in interface CommonsHandler
Throws:
java.rmi.RemoteException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

GetOffers

public GetOffersRS GetOffers(GetOffersRQ rq)
                      throws java.rmi.RemoteException
Description copied from interface: CommonsHandler
method to retrive the offers contained in a offers board

Specified by:
GetOffers in interface CommonsHandler
Throws:
java.rmi.RemoteException

getCitiesWithAvailability

public GetCitiesWithAvailabilityRS getCitiesWithAvailability(GetCitiesWithAvailabilityRQ rq)
                                                      throws java.rmi.RemoteException
Description copied from interface: CommonsHandler
method to retrieve a list with all available cities of a country

Specified by:
getCitiesWithAvailability in interface CommonsHandler
Throws:
java.rmi.RemoteException

getVehiclesTypes

public GetVehiclesRS getVehiclesTypes(GetVehiclesRQ rq)
                               throws java.rmi.RemoteException
Specified by:
getVehiclesTypes in interface CommonsHandler
Throws:
java.rmi.RemoteException

getSections

public GetSectionsRS getSections(GetSectionsRQ rq)
                          throws java.rmi.RemoteException
Specified by:
getSections in interface CommonsHandler
Throws:
java.rmi.RemoteException

getAreasV12

public GetAreasRSV12 getAreasV12(GetAreasRQV12 rq)
                          throws java.rmi.RemoteException
Description copied from interface: CommonsHandler
method to retrieve an areas tree and the sections if they have.

Over the geografical tree, we have constructed an areas tree that represent sets of cities, states.

Specified by:
getAreasV12 in interface CommonsHandler
Throws:
java.rmi.RemoteException