make checkConfig static

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@50 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2007-04-25 23:38:43 +00:00
parent 93bc82da15
commit bc5b0ef98a
3 changed files with 5 additions and 6 deletions

View File

@ -135,7 +135,7 @@ public class ExchangeSession {
*
* @param httpClient current Http client
*/
protected void configureClient(HttpClient httpClient) {
protected static void configureClient(HttpClient httpClient) {
String enableProxy = Settings.getProperty("davmail.enableProxy");
String proxyHost = null;
String proxyPort = null;
@ -169,7 +169,7 @@ public class ExchangeSession {
}
public void checkConfig() throws IOException {
public static void checkConfig() throws IOException {
try {
String url = Settings.getProperty("davmail.url");

View File

@ -54,8 +54,7 @@ public class PopConnection extends AbstractConnection {
StringTokenizer tokens;
try {
session = new ExchangeSession();
session.checkConfig();
ExchangeSession.checkConfig();
sendOK("DavMail POP ready at " + new Date());
for (; ;) {
@ -96,6 +95,7 @@ public class PopConnection extends AbstractConnection {
} else {
password = tokens.nextToken();
try {
session = new ExchangeSession();
session.login(userName, password);
messages = session.getAllMessages();
sendOK("PASS");

View File

@ -31,8 +31,7 @@ public class SmtpConnection extends AbstractConnection {
try {
session = new ExchangeSession();
session.checkConfig();
ExchangeSession.checkConfig();
sendClient("220 DavMail SMTP ready at " + new Date());
for (; ;) {
line = readClient();