org.mule.samples.loanbroker.LoanRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mule-example-loanbroker Show documentation
Show all versions of mule-example-loanbroker Show documentation
The Loan Broker example application is based on the example presented in the Enterprise Integration Patterns book. This chapter of the book is available online so you can see a detailed description of the application here (http://www.eaipatterns.com/ComposedMessagingWS.html).
/*
* $Id: LoanRequest.java 3982 2006-11-22 14:28:01Z lajos $
* --------------------------------------------------------------------------------------
* Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
*
* The software in this package is published under the terms of the MuleSource MPL
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.samples.loanbroker;
import java.io.Serializable;
/**
* LoanRequest
is the request sent by the the LoanBroker
*/
public class LoanRequest implements Serializable
{
/**
* Serial version
*/
private static final long serialVersionUID = -3148402182454459673L;
/** The customer that requested the quote */
private Customer customer;
/** credit profile for the customer */
private CreditProfile creditProfile;
/** The requested loan Amount */
private double loanAmount;
/** the duration of the loan */
private int loanDuration;
public LoanRequest()
{
super();
}
public LoanRequest(Customer customer, double loanAmount, int loanDuration)
{
this.customer = customer;
this.loanAmount = loanAmount;
this.loanDuration = loanDuration;
}
public Customer getCustomer()
{
return customer;
}
public void setCustomer(Customer customer)
{
this.customer = customer;
}
public double getLoanAmount()
{
return loanAmount;
}
public void setLoanAmount(double loanAmount)
{
this.loanAmount = loanAmount;
}
public int getLoanDuration()
{
return loanDuration;
}
public void setLoanDuration(int loanDuration)
{
this.loanDuration = loanDuration;
}
public CreditProfile getCreditProfile()
{
return creditProfile;
}
public void setCreditProfile(CreditProfile creditProfile)
{
this.creditProfile = creditProfile;
}
}