Methods Summary |
---|
public boolean | doSubscribe()Process a subscription to the mailing list. The doesn't actually
do anything other than verify the address has an '@' character in it.
Real implementations would talk to the mailing list server here
if (getEmail().indexOf('@") == -1) {
errorString = "invalid email address";
return false;
} else {
errorString = null;
return true;
}
|
public java.lang.String | getEmail()Get the email address
return email;
|
public java.lang.String | getErrorString()Get the error string for the most recent attempt to subscribe.
return errorString;
|
public java.lang.String | getFirst()Get the first name
return first;
|
public java.lang.String | getLast()Get the last name
return last;
|
public void | setEmail(java.lang.String email)Set the email address
this.email = email;
|
public void | setFirst(java.lang.String first)Set the first name
this.first = first;
|
public void | setLast(java.lang.String last)Set the last name
this.last = last;
|