FakeClientConnection.java
| Index Score | ||
|---|---|---|
![]() |
![]() |
com.zimbra.cs.im |
![]() |
![]() |
Zimbra Collaboration Suite |
View: Reasons, Metrics, Source Code
These are the metrics that contribute to the Enerjy Score for this file, ranked by impact. So the metrics listed at the top influence the score to a greater extent that the metrics listed at the bottom.
| Metric | Description | |
|---|---|---|
/*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.zimbra.com/license
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is: Zimbra Collaboration Suite Server.
*
* The Initial Developer of the Original Code is Zimbra, Inc.
* Portions created by Zimbra are Copyright (C) 2006 Zimbra, Inc.
* All Rights Reserved.
*
* Contributor(s):
*
* ***** END LICENSE BLOCK *****
*/
package com.zimbra.cs.im;
import java.net.InetAddress;
import org.jivesoftware.wildfire.auth.UnauthorizedException;
import org.jivesoftware.wildfire.net.VirtualConnection;
import org.xmpp.packet.Packet;
public class FakeClientConnection extends VirtualConnection {
IMAddr mAddr;
FakeClientConnection(IMPersona persona) {
mAddr = persona.getAddr();
}
/* (non-Javadoc)
* @see org.jivesoftware.wildfire.net.VirtualConnection#closeVirtualConnection()
*/
public void closeVirtualConnection() {
}
/* (non-Javadoc)
* @see org.jivesoftware.wildfire.Connection#deliver(org.xmpp.packet.Packet)
*/
public void deliver(Packet packet) throws UnauthorizedException {
IMXmppEvent imXmppEvent = new IMXmppEvent(mAddr, packet);
IMRouter.getInstance().postEvent(imXmppEvent);
}
/* (non-Javadoc)
* @see org.jivesoftware.wildfire.Connection#deliverRawText(java.lang.String)
*/
public void deliverRawText(String text) {
// ignored for now
}
/* (non-Javadoc)
* @see org.jivesoftware.wildfire.Connection#getInetAddress()
*/
public InetAddress getInetAddress() {
return null;
}
/* (non-Javadoc)
* @see org.jivesoftware.wildfire.Connection#systemShutdown()
*/
public void systemShutdown() {
}
}
The table below shows all metrics for FakeClientConnection.java.
| Metric | Value | Description | |
|---|---|---|---|



