Order the Book

coreservlets
Class TravelCustomer

java.lang.Object
  |
  +--coreservlets.TravelCustomer

public class TravelCustomer
extends Object

Describes a travel services customer. Implemented as a bean with some methods that return data in HTML format, suitable for access from JSP.

Taken from Core Servlets and JavaServer Pages from Prentice Hall and Sun Microsystems Press, http://www.coreservlets.com/. © 2000 Marty Hall; may be freely used or adapted.


Constructor Summary
TravelCustomer(String emailAddress, String password, String firstName, String lastName, String creditCardName, String creditCardNumber, String phoneNumber, String homeAddress, FrequentFlyerInfo[] frequentFlyerData, RentalCarInfo[] rentalCarData, HotelInfo[] hotelData)
           
 
Method Summary
static TravelCustomer findCustomer(String emailAddress, TravelCustomer[] customers)
           
 String getCreditCard()
           
 String getCreditCardName()
           
 String getCreditCardNumber()
           
 String getDestination()
           
 String getEmailAddress()
           
 String getEndDate()
           
 String getFirstName()
           
 String getFlights()
           
 FrequentFlyerInfo[] getFrequentFlyerData()
           
 String getFrequentFlyerTable()
           
 String getFullName()
           
 String getHomeAddress()
           
 HotelInfo[] getHotelData()
           
 String getLastName()
           
 String getOrigin()
           
 String getPassword()
           
 String getPhoneNumber()
           
 RentalCarInfo[] getRentalCarData()
           
 String getStartDate()
           
 void setCreditCardName(String creditCardName)
           
 void setCreditCardNumber(String creditCardNumber)
           
 void setDestination(String destination)
           
 void setEmailAddress(String emailAddress)
           
 void setEndDate(String endDate)
           
 void setFirstName(String firstName)
           
 void setFrequentFlyerData(FrequentFlyerInfo[] frequentFlyerData)
           
 void setHomeAddress(String homeAddress)
           
 void setHotelData(HotelInfo[] hotelData)
           
 void setLastName(String lastName)
           
 void setOrigin(String origin)
           
 void setPassword(String password)
           
 void setPhoneNumber(String phoneNumber)
           
 void setRentalCarData(RentalCarInfo[] rentalCarData)
           
 void setStartDate(String startDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TravelCustomer

public TravelCustomer(String emailAddress,
                      String password,
                      String firstName,
                      String lastName,
                      String creditCardName,
                      String creditCardNumber,
                      String phoneNumber,
                      String homeAddress,
                      FrequentFlyerInfo[] frequentFlyerData,
                      RentalCarInfo[] rentalCarData,
                      HotelInfo[] hotelData)
Method Detail

getEmailAddress

public String getEmailAddress()

setEmailAddress

public void setEmailAddress(String emailAddress)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getFirstName

public String getFirstName()

setFirstName

public void setFirstName(String firstName)

getLastName

public String getLastName()

setLastName

public void setLastName(String lastName)

getFullName

public String getFullName()

getCreditCardName

public String getCreditCardName()

setCreditCardName

public void setCreditCardName(String creditCardName)

getCreditCardNumber

public String getCreditCardNumber()

setCreditCardNumber

public void setCreditCardNumber(String creditCardNumber)

getCreditCard

public String getCreditCard()

getPhoneNumber

public String getPhoneNumber()

setPhoneNumber

public void setPhoneNumber(String phoneNumber)

getHomeAddress

public String getHomeAddress()

setHomeAddress

public void setHomeAddress(String homeAddress)

getStartDate

public String getStartDate()

setStartDate

public void setStartDate(String startDate)

getEndDate

public String getEndDate()

setEndDate

public void setEndDate(String endDate)

getOrigin

public String getOrigin()

setOrigin

public void setOrigin(String origin)

getDestination

public String getDestination()

setDestination

public void setDestination(String destination)

getFrequentFlyerData

public FrequentFlyerInfo[] getFrequentFlyerData()

setFrequentFlyerData

public void setFrequentFlyerData(FrequentFlyerInfo[] frequentFlyerData)

getFrequentFlyerTable

public String getFrequentFlyerTable()

getRentalCarData

public RentalCarInfo[] getRentalCarData()

setRentalCarData

public void setRentalCarData(RentalCarInfo[] rentalCarData)

getHotelData

public HotelInfo[] getHotelData()

setHotelData

public void setHotelData(HotelInfo[] hotelData)

getFlights

public String getFlights()

findCustomer

public static TravelCustomer findCustomer(String emailAddress,
                                          TravelCustomer[] customers)

Order the Book

Order
CSAJSP @ amazon.com

Return to Top-Level Source Code Archive