KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > httpunit > HttpTestEntry


1 /*
2  * SSL-Explorer
3  *
4  * Copyright (C) 2003-2006 3SP LTD. All Rights Reserved
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */

19             
20 package com.sslexplorer.httpunit;
21
22 import java.util.ArrayList JavaDoc;
23 import java.util.Collection JavaDoc;
24
25 /**
26  */

27 public final class HttpTestEntry {
28     private String JavaDoc name;
29     private boolean isAuthenticated;
30     private String JavaDoc username;
31     private String JavaDoc password;
32     private Collection JavaDoc<HttpTestEntryStep> steps;
33     
34     /**
35      */

36     public HttpTestEntry() {
37         steps = new ArrayList JavaDoc<HttpTestEntryStep>();
38     }
39
40     /**
41      * @return String
42      */

43     String JavaDoc getName() {
44         return name;
45     }
46
47     /**
48      * @param name
49      */

50     public void setName(String JavaDoc name) {
51         this.name = name;
52     }
53
54     /**
55      * @return String
56      */

57     String JavaDoc getUsername() {
58         return username;
59     }
60
61     /**
62      * @param username
63      */

64     public void setUsername(String JavaDoc username) {
65         this.username = username;
66     }
67     
68     /**
69      * @return String
70      */

71     String JavaDoc getPassword() {
72         return password;
73     }
74
75     /**
76      * @param password
77      */

78     public void setPassword(String JavaDoc password) {
79         this.password = password;
80     }
81
82     /**
83      * @return boolean
84      */

85     boolean isAuthenticated() {
86         return isAuthenticated;
87     }
88
89     /**
90      * @param isAuthenticated
91      */

92     public void setAuthenticated(boolean isAuthenticated) {
93         this.isAuthenticated = isAuthenticated;
94     }
95     
96     /**
97      * @return Collection<HttpTestEntryStep>
98      */

99     Collection JavaDoc<HttpTestEntryStep> getSteps() {
100         return steps;
101     }
102     
103     /**
104      * @param step
105      */

106     public void addStep(HttpTestEntryStep step) {
107         steps.add(step);
108     }
109
110     @Override JavaDoc
111     public String JavaDoc toString() {
112         StringBuffer JavaDoc buffer = new StringBuffer JavaDoc();
113         buffer.append("Name='").append(name).append("' ");
114         buffer.append("Authenticated='").append(isAuthenticated).append("' ");
115         buffer.append("Username='").append(username).append("' ");
116         buffer.append("Password='").append(password).append("' ");
117         buffer.append("Steps='").append(steps.size()).append("' ");
118         return buffer.toString();
119     }
120 }
Popular Tags