Commit 1c823bc3 authored by Derek DeMoro's avatar Derek DeMoro Committed by derek

Removing impl classes and updating admin.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@540 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2ca5b99f
...@@ -8,6 +8,7 @@ import org.jivesoftware.messenger.spi.PacketRouterImpl; ...@@ -8,6 +8,7 @@ import org.jivesoftware.messenger.spi.PacketRouterImpl;
import org.jivesoftware.messenger.spi.PresenceImpl; import org.jivesoftware.messenger.spi.PresenceImpl;
import org.jivesoftware.util.Log; import org.jivesoftware.util.Log;
import org.jivesoftware.util.StringUtils; import org.jivesoftware.util.StringUtils;
import org.xmpp.packet.Packet;
/** /**
* <p>Manages the registration and delegation of Components.</p> * <p>Manages the registration and delegation of Components.</p>
...@@ -125,6 +126,25 @@ public class ComponentManager { ...@@ -125,6 +126,25 @@ public class ComponentManager {
} }
} }
/**
* Send a packet to the specified recipient. Please note that this sends packets only
* to outgoing jids and does to the incoming server reader.
*
* @param packet the packet to send.
*/
public void sendPacket(Packet packet) {
PacketRouter router;
try {
router = (PacketRouterImpl) ServiceLookupFactory.getLookup().lookup(PacketRouterImpl.class);
if (router != null) {
// router.route(packet);
}
}
catch (UnauthorizedException e) {
Log.error(e);
}
}
private String validateJID(String jid) { private String validateJID(String jid) {
jid = jid.trim().toLowerCase(); jid = jid.trim().toLowerCase();
return jid; return jid;
......
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