Commit 81117734 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Switched from System.out/err to Log.debug.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9960 b35dd754-fafc-0310-a699-88a17e54d16e
parent f07250f6
...@@ -124,6 +124,7 @@ public class ClearspaceManager extends BasicModule implements ExternalComponentM ...@@ -124,6 +124,7 @@ public class ClearspaceManager extends BasicModule implements ExternalComponentM
exceptionMap.put("com.jivesoftware.base.UserAlreadyExistsException", "org.jivesoftware.openfire.user.UserAlreadyExistsException"); exceptionMap.put("com.jivesoftware.base.UserAlreadyExistsException", "org.jivesoftware.openfire.user.UserAlreadyExistsException");
exceptionMap.put("com.jivesoftware.base.GroupNotFoundException", "org.jivesoftware.openfire.group.GroupNotFoundException"); exceptionMap.put("com.jivesoftware.base.GroupNotFoundException", "org.jivesoftware.openfire.group.GroupNotFoundException");
exceptionMap.put("com.jivesoftware.base.GroupAlreadyExistsException", "org.jivesoftware.openfire.group.GroupAlreadyExistsException"); exceptionMap.put("com.jivesoftware.base.GroupAlreadyExistsException", "org.jivesoftware.openfire.group.GroupAlreadyExistsException");
exceptionMap.put("org.acegisecurity.BadCredentialsException", "org.jivesoftware.openfire.auth.UnauthorizedException");
} }
private static ClearspaceManager instance = new ClearspaceManager(); private static ClearspaceManager instance = new ClearspaceManager();
...@@ -581,7 +582,7 @@ public class ClearspaceManager extends BasicModule implements ExternalComponentM ...@@ -581,7 +582,7 @@ public class ClearspaceManager extends BasicModule implements ExternalComponentM
public Element executeRequest(HttpType type, String urlSuffix, String xmlParams) public Element executeRequest(HttpType type, String urlSuffix, String xmlParams)
throws Exception throws Exception
{ {
System.out.println(xmlParams); Log.debug("Outgoing REST call ["+type+"] to "+urlSuffix+": "+xmlParams);
String wsUrl = getConnectionURI() + WEBSERVICES_PATH + urlSuffix; String wsUrl = getConnectionURI() + WEBSERVICES_PATH + urlSuffix;
String secret = getSharedSecret(); String secret = getSharedSecret();
...@@ -628,7 +629,7 @@ public class ClearspaceManager extends BasicModule implements ExternalComponentM ...@@ -628,7 +629,7 @@ public class ClearspaceManager extends BasicModule implements ExternalComponentM
// Parses the result // Parses the result
String body = method.getResponseBodyAsString(); String body = method.getResponseBodyAsString();
System.out.println(body); Log.debug("Outgoing REST call results: "+body);
Element response = localParser.get().parseDocument(body).getRootElement(); Element response = localParser.get().parseDocument(body).getRootElement();
// Check for exceptions // Check for exceptions
......
...@@ -21,6 +21,7 @@ import org.jivesoftware.openfire.user.UserNotFoundException; ...@@ -21,6 +21,7 @@ import org.jivesoftware.openfire.user.UserNotFoundException;
import org.jivesoftware.openfire.vcard.VCardProvider; import org.jivesoftware.openfire.vcard.VCardProvider;
import org.jivesoftware.util.AlreadyExistsException; import org.jivesoftware.util.AlreadyExistsException;
import org.jivesoftware.util.NotFoundException; import org.jivesoftware.util.NotFoundException;
import org.jivesoftware.util.Log;
import java.util.List; import java.util.List;
import java.util.StringTokenizer; import java.util.StringTokenizer;
...@@ -90,7 +91,7 @@ public class ClearspaceVCardProvider implements VCardProvider { ...@@ -90,7 +91,7 @@ public class ClearspaceVCardProvider implements VCardProvider {
} }
private Element saveVCard(String username, Element vCardElement) { private Element saveVCard(String username, Element vCardElement) {
System.out.println(vCardElement.asXML()); Log.debug("Saving VCARD: "+vCardElement.asXML());
Document profilesDoc = DocumentHelper.createDocument(); Document profilesDoc = DocumentHelper.createDocument();
Element rootE = profilesDoc.addElement("setProfile"); Element rootE = profilesDoc.addElement("setProfile");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment