From 5bf6ed1acde159b06571bb56b2d1054502f41ca1 Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Sun, 17 Jan 2010 18:58:57 +0000 Subject: [PATCH] extract api part git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@729 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/mibewjava/org.mibew.api/.classpath | 6 ++++++ src/mibewjava/org.mibew.api/.project | 17 +++++++++++++++++ .../src/org/mibew/api/MibewConnection.java | 0 .../src/org/mibew/api/MibewResponse.java | 0 .../src/org/mibew/api/MibewThread.java | 0 .../src/org/mibew/api/MibewTracker.java | 0 .../src/org/mibew/api/MibewTrackerListener.java | 0 .../src/org/mibew/api/Utils.java | 0 .../org/mibew/api/handlers/LoginHandler.java | 0 .../org/mibew/api/handlers/UpdateHandler.java | 0 src/mibewjava/org.mibew.jabber/.classpath | 1 + .../src/org/mibew/jabber/Application.java | 2 +- 12 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 src/mibewjava/org.mibew.api/.classpath create mode 100644 src/mibewjava/org.mibew.api/.project rename src/mibewjava/{org.mibew.jabber => org.mibew.api}/src/org/mibew/api/MibewConnection.java (100%) rename src/mibewjava/{org.mibew.jabber => org.mibew.api}/src/org/mibew/api/MibewResponse.java (100%) rename src/mibewjava/{org.mibew.jabber => org.mibew.api}/src/org/mibew/api/MibewThread.java (100%) rename src/mibewjava/{org.mibew.jabber => org.mibew.api}/src/org/mibew/api/MibewTracker.java (100%) rename src/mibewjava/{org.mibew.jabber => org.mibew.api}/src/org/mibew/api/MibewTrackerListener.java (100%) rename src/mibewjava/{org.mibew.jabber => org.mibew.api}/src/org/mibew/api/Utils.java (100%) rename src/mibewjava/{org.mibew.jabber => org.mibew.api}/src/org/mibew/api/handlers/LoginHandler.java (100%) rename src/mibewjava/{org.mibew.jabber => org.mibew.api}/src/org/mibew/api/handlers/UpdateHandler.java (100%) diff --git a/src/mibewjava/org.mibew.api/.classpath b/src/mibewjava/org.mibew.api/.classpath new file mode 100644 index 00000000..18d70f02 --- /dev/null +++ b/src/mibewjava/org.mibew.api/.classpath @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/mibewjava/org.mibew.api/.project b/src/mibewjava/org.mibew.api/.project new file mode 100644 index 00000000..3197fa8e --- /dev/null +++ b/src/mibewjava/org.mibew.api/.project @@ -0,0 +1,17 @@ + + + org.mibew.api + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/src/mibewjava/org.mibew.jabber/src/org/mibew/api/MibewConnection.java b/src/mibewjava/org.mibew.api/src/org/mibew/api/MibewConnection.java similarity index 100% rename from src/mibewjava/org.mibew.jabber/src/org/mibew/api/MibewConnection.java rename to src/mibewjava/org.mibew.api/src/org/mibew/api/MibewConnection.java diff --git a/src/mibewjava/org.mibew.jabber/src/org/mibew/api/MibewResponse.java b/src/mibewjava/org.mibew.api/src/org/mibew/api/MibewResponse.java similarity index 100% rename from src/mibewjava/org.mibew.jabber/src/org/mibew/api/MibewResponse.java rename to src/mibewjava/org.mibew.api/src/org/mibew/api/MibewResponse.java diff --git a/src/mibewjava/org.mibew.jabber/src/org/mibew/api/MibewThread.java b/src/mibewjava/org.mibew.api/src/org/mibew/api/MibewThread.java similarity index 100% rename from src/mibewjava/org.mibew.jabber/src/org/mibew/api/MibewThread.java rename to src/mibewjava/org.mibew.api/src/org/mibew/api/MibewThread.java diff --git a/src/mibewjava/org.mibew.jabber/src/org/mibew/api/MibewTracker.java b/src/mibewjava/org.mibew.api/src/org/mibew/api/MibewTracker.java similarity index 100% rename from src/mibewjava/org.mibew.jabber/src/org/mibew/api/MibewTracker.java rename to src/mibewjava/org.mibew.api/src/org/mibew/api/MibewTracker.java diff --git a/src/mibewjava/org.mibew.jabber/src/org/mibew/api/MibewTrackerListener.java b/src/mibewjava/org.mibew.api/src/org/mibew/api/MibewTrackerListener.java similarity index 100% rename from src/mibewjava/org.mibew.jabber/src/org/mibew/api/MibewTrackerListener.java rename to src/mibewjava/org.mibew.api/src/org/mibew/api/MibewTrackerListener.java diff --git a/src/mibewjava/org.mibew.jabber/src/org/mibew/api/Utils.java b/src/mibewjava/org.mibew.api/src/org/mibew/api/Utils.java similarity index 100% rename from src/mibewjava/org.mibew.jabber/src/org/mibew/api/Utils.java rename to src/mibewjava/org.mibew.api/src/org/mibew/api/Utils.java diff --git a/src/mibewjava/org.mibew.jabber/src/org/mibew/api/handlers/LoginHandler.java b/src/mibewjava/org.mibew.api/src/org/mibew/api/handlers/LoginHandler.java similarity index 100% rename from src/mibewjava/org.mibew.jabber/src/org/mibew/api/handlers/LoginHandler.java rename to src/mibewjava/org.mibew.api/src/org/mibew/api/handlers/LoginHandler.java diff --git a/src/mibewjava/org.mibew.jabber/src/org/mibew/api/handlers/UpdateHandler.java b/src/mibewjava/org.mibew.api/src/org/mibew/api/handlers/UpdateHandler.java similarity index 100% rename from src/mibewjava/org.mibew.jabber/src/org/mibew/api/handlers/UpdateHandler.java rename to src/mibewjava/org.mibew.api/src/org/mibew/api/handlers/UpdateHandler.java diff --git a/src/mibewjava/org.mibew.jabber/.classpath b/src/mibewjava/org.mibew.jabber/.classpath index 4257a5dc..89790263 100644 --- a/src/mibewjava/org.mibew.jabber/.classpath +++ b/src/mibewjava/org.mibew.jabber/.classpath @@ -4,5 +4,6 @@ + diff --git a/src/mibewjava/org.mibew.jabber/src/org/mibew/jabber/Application.java b/src/mibewjava/org.mibew.jabber/src/org/mibew/jabber/Application.java index 961c3970..4ba649b1 100644 --- a/src/mibewjava/org.mibew.jabber/src/org/mibew/jabber/Application.java +++ b/src/mibewjava/org.mibew.jabber/src/org/mibew/jabber/Application.java @@ -39,7 +39,7 @@ public class Application { } }); - MibewConnection conn = new MibewConnection("http://localhost:8080/webim/", "admin", ""); + MibewConnection conn = new MibewConnection("http://localhost:8080/webim/", "admin", "1"); if(!conn.connect()) { System.err.println("Wrong server, login or password."); return;