68
|
1 package fschmidt.util.mail.nomail;
|
|
2
|
|
3 import java.util.NoSuchElementException;
|
|
4 import fschmidt.util.mail.Mail;
|
|
5 import fschmidt.util.mail.Pop3Server;
|
|
6 import fschmidt.util.mail.MailIterator;
|
|
7
|
|
8
|
|
9 final class Pop3ServerImpl implements Pop3Server {
|
|
10
|
|
11 public MailIterator getMail() {
|
|
12 return new MailIterator(){
|
|
13 public boolean hasNext() {
|
|
14 return false;
|
|
15 }
|
|
16 public Mail next() throws NoSuchElementException {
|
|
17 throw new NoSuchElementException();
|
|
18 }
|
|
19 public void close() {}
|
|
20 };
|
|
21 }
|
|
22
|
|
23 public void setLeaveOnServer(boolean b) {}
|
|
24 public void setMailLimit(int maxMailCount) {}
|
|
25 public String getUsername() {
|
|
26 throw new UnsupportedOperationException();
|
|
27 }
|
|
28 public void useSsl() {}
|
|
29 public void setDebug(boolean b) {}
|
|
30 }
|