Commit 17f199b4 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Some more code cleanup.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4383 b35dd754-fafc-0310-a699-88a17e54d16e
parent 61a17711
...@@ -68,9 +68,9 @@ public abstract class AbstractGatewaySession implements GatewaySession, Endpoint ...@@ -68,9 +68,9 @@ public abstract class AbstractGatewaySession implements GatewaySession, Endpoint
} }
/** /**
* Return the jabber <code>Endpoint</code>. * Return the Jabber <code>Endpoint</code>.
* *
* @return endpoint The jabber endpoint. * @return endpoint The Jabber endpoint.
* @see org.jivesoftware.wildfire.gateway.Endpoint * @see org.jivesoftware.wildfire.gateway.Endpoint
*/ */
public Endpoint getJabberEndpoint() { public Endpoint getJabberEndpoint() {
...@@ -114,4 +114,5 @@ public abstract class AbstractGatewaySession implements GatewaySession, Endpoint ...@@ -114,4 +114,5 @@ public abstract class AbstractGatewaySession implements GatewaySession, Endpoint
public EndpointValve getValve() { public EndpointValve getValve() {
return this.jabberEndpoint.getValve(); return this.jabberEndpoint.getValve();
} }
} }
...@@ -30,7 +30,6 @@ public interface Endpoint { ...@@ -30,7 +30,6 @@ public interface Endpoint {
*/ */
public void sendPacket(Packet packet) throws ComponentException; public void sendPacket(Packet packet) throws ComponentException;
/** /**
* Return the <code>EndpointValve</code>. This provides the ability of the * Return the <code>EndpointValve</code>. This provides the ability of the
* caller to open or close the valve to control the follow of packets to the * caller to open or close the valve to control the follow of packets to the
...@@ -39,4 +38,5 @@ public interface Endpoint { ...@@ -39,4 +38,5 @@ public interface Endpoint {
* @return valve The <code>EndpointValve</code> associated with this <code>Endpoint</code> * @return valve The <code>EndpointValve</code> associated with this <code>Endpoint</code>
*/ */
public EndpointValve getValve(); public EndpointValve getValve();
} }
...@@ -34,6 +34,7 @@ public class JabberEndpoint implements Endpoint { ...@@ -34,6 +34,7 @@ public class JabberEndpoint implements Endpoint {
* @see ComponentManager * @see ComponentManager
*/ */
private final ComponentManager componentManager; private final ComponentManager componentManager;
/** /**
* The component * The component
* *
...@@ -41,7 +42,6 @@ public class JabberEndpoint implements Endpoint { ...@@ -41,7 +42,6 @@ public class JabberEndpoint implements Endpoint {
*/ */
private final Component component; private final Component component;
/** /**
* The value. * The value.
* @see EndpointValve * @see EndpointValve
...@@ -68,19 +68,6 @@ public class JabberEndpoint implements Endpoint { ...@@ -68,19 +68,6 @@ public class JabberEndpoint implements Endpoint {
this.component = component; this.component = component;
this.valve= valve; this.valve= valve;
} }
//
//
// /**
// * @param jid
// * @param string
// * @throws Exception
// */
// public void sendMessage(JID jid, String string) throws Exception {
// Message message = new Message();
// message.setBody(string);
// message.setTo(jid);
// this.componentManager.sendPacket(this.component, message);
// }
/** /**
* @see org.jivesoftware.wildfire.gateway.Endpoint#sendPacket(Packet) * @see org.jivesoftware.wildfire.gateway.Endpoint#sendPacket(Packet)
...@@ -103,7 +90,6 @@ public class JabberEndpoint implements Endpoint { ...@@ -103,7 +90,6 @@ public class JabberEndpoint implements Endpoint {
/** The backlog queue. */ /** The backlog queue. */
private final ConcurrentLinkedQueue<Packet> queue = new ConcurrentLinkedQueue<Packet>(); private final ConcurrentLinkedQueue<Packet> queue = new ConcurrentLinkedQueue<Packet>();
/** The logger. */ /** The logger. */
final static private Logger logger = Logger.getLogger("JabberEndpoint", "gateway_i18n"); final static private Logger logger = Logger.getLogger("JabberEndpoint", "gateway_i18n");
......
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