mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 09:21:49 -05:00
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:
parent
93bc82da15
commit
bc5b0ef98a
@ -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");
|
||||
|
||||
|
@ -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");
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user