01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: IncookiesInjection.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.testelements.cookies;
09:
10: import com.uwyn.rife.engine.Element;
11:
12: public class IncookiesInjection extends Element {
13: private String mFirstname;
14: private String mMiddlename;
15: private String mLastname;
16: private String mGlobalcookie1;
17: private String mGlobalcookie2;
18: private String mGlobalcookie3;
19:
20: public void setFirstname(String firstname) {
21: mFirstname = firstname;
22: }
23:
24: public void setMiddlename(String middlename) {
25: mMiddlename = middlename;
26: }
27:
28: public void setLastname(String lastname) {
29: mLastname = lastname;
30: }
31:
32: public void setGlobalcookie1(String globalcookie1) {
33: mGlobalcookie1 = globalcookie1;
34: }
35:
36: public void setGlobalcookie2(String globalcookie2) {
37: mGlobalcookie2 = globalcookie2;
38: }
39:
40: public void setGlobalcookie3(String globalcookie3) {
41: mGlobalcookie3 = globalcookie3;
42: }
43:
44: public void processElement() {
45: print("Welcome ");
46: print(mFirstname);
47: print(" ");
48: print(mMiddlename);
49: print(" ");
50: print(mLastname);
51: print("\n");
52: print(mGlobalcookie1);
53: print(" ");
54: print(mGlobalcookie2);
55: print(" ");
56: print(mGlobalcookie3);
57: }
58: }
|