ch3.dataBean
Class RequestData

java.lang.Object
  extended by ch3.dataBean.RequestData

public class RequestData
extends java.lang.Object

The bean that encapsulates the data from the request.

When the request is received, the controller will copy the data from the request into the bean.


Field Summary
protected  java.lang.String aversion
          The variable to store the aversion.
protected  java.lang.String hobby
          The variable to store the hobby.
 
Constructor Summary
RequestData()
          Creates a new instance of RequestData
 
Method Summary
 java.lang.String getAversion()
          The accessor for the aversion property.
 java.lang.String getHobby()
          The accessor for the hobby property.
 void setAversion(java.lang.String aversion)
          The mutator for the aversion property.
 void setHobby(java.lang.String hobby)
          The mutator for the hobby property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hobby

protected java.lang.String hobby
The variable to store the hobby. The variable is hidden from other classes, so it doesn't matter what name it has.


aversion

protected java.lang.String aversion
The variable to store the aversion. The variable is hidden from other classes, so it doesn't matter what name it has.

Constructor Detail

RequestData

public RequestData()
Creates a new instance of RequestData

Method Detail

setHobby

public void setHobby(java.lang.String hobby)
The mutator for the hobby property. This name must agree with the name of the input element from the HTML page where the user enters data. The name of the input element should be hobby.

Parameters:
hobby - The hobby from the request data.

getHobby

public java.lang.String getHobby()
The accessor for the hobby property. This name must agree with the name of the input element from the HTML page where the user enters data. The name of the input element should be hobby.

Returns:
The hobby from the bean.

setAversion

public void setAversion(java.lang.String aversion)
The mutator for the aversion property. This name must agree with the name of the input element from the HTML page where the user enters data. The name of the input element should be aversion.

Parameters:
aversion - The aversion from the request data.

getAversion

public java.lang.String getAversion()
The accessor for the aversion property. This name must agree with the name of the input element from the HTML page where the user enters data. The name of the input element should be aversion.

Returns:
The aversion from the bean.