File: PaymentResponse.java

package info (click to toggle)
libjdepend-java 2.9-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 800 kB
  • ctags: 781
  • sloc: java: 3,873; xml: 549; sh: 6; makefile: 6
file content (79 lines) | stat: -rw-r--r-- 1,655 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package epayment.response;

import epayment.framework.IPaymentResponse;

/**
 * The <code>PaymentResponse</code> class is an
 * <code>IPaymentResponse</code> that encapsulates
 * the basic payment response information.
 * <p>
 * This class is strictly an example.
 *
 * @author <a href="mailto:mike@clarkware.com">Mike Clark</a>
 * @author <a href="http://www.clarkware.com">Clarkware Consulting</a>
 */
 
public class PaymentResponse implements IPaymentResponse {

	private String _processedDate;
	private String _responseMessage;
	
	/**
	 * Constructs a <code>PaymentResponse</code>
	 * with default values.
	 */
	public PaymentResponse() {
		_processedDate = "";
		_responseMessage = "";
	}

	/**
	 * Returns the processed date.
	 *
	 * @return Processed date.
	 */
	public String getProcessedDate() {
		return _processedDate;
	}
	
	/**
	 * Sets the processed date.
	 *
	 * @param date Processed date.
	 */
	protected void setProcessedDate(String date) {
		_processedDate = date;
	}
	
	/**
	 * Returns the response message.
	 *
	 * @return Response message.
	 */
	public String getResponseMessage() {
		return _responseMessage;
	}
	
	/**
	 * Sets the response message.
	 *
	 * @param message Response message.
	 */
	protected void setResponseMessage(String message) {
		_responseMessage = message;
	}
	
	/**
	 * Returns the string representation of this object.
	 *
	 * @return String representation.
	 */
	public String toString() {
	
		StringBuffer contents = new StringBuffer();
		contents.append("Response Message = " + _responseMessage + "\n");
		contents.append("Processed Date = " + _processedDate + "\n");
		
		return contents.toString();
	}
}