public static class ProtocolProviderServiceIcqImpl.ConnectionClosedListener
extends java.lang.Object
implements net.kano.joscar.flap.FlapPacketListener
Constructor and Description |
---|
ConnectionClosedListener(net.kano.joustsim.oscar.AimConnection aimConnection) |
Modifier and Type | Method and Description |
---|---|
(package private) static int |
convertAuthCodeToReasonCode(net.kano.joustsim.oscar.oscar.loginstatus.AuthFailureInfo afi)
When receiving login failure
the reasons for the failure are in the authorization
part of the protocol ( 0x13 )
In the AuthResponse are the possible reason codes
here they are converted to those in the ConnectionClosedListener
so the they can be converted to the one in service protocol events
|
(package private) static int |
convertCodeToRegistrationStateChangeEvent(int reasonCode)
Converts the codes in the close command
or the lastCloseCode of OscarConnection to the states
which are registered in the service protocol events
|
(package private) static java.lang.String |
convertCodeToStringReason(int reasonCode)
returns the reason string corresponding to the code
in the close command
|
void |
handleFlapPacket(net.kano.joscar.flap.FlapPacketEvent evt) |
ConnectionClosedListener(net.kano.joustsim.oscar.AimConnection aimConnection)
public void handleFlapPacket(net.kano.joscar.flap.FlapPacketEvent evt)
handleFlapPacket
in interface net.kano.joscar.flap.FlapPacketListener
static int convertCodeToRegistrationStateChangeEvent(int reasonCode)
reasonCode
- int the reason of close connectionstatic java.lang.String convertCodeToStringReason(int reasonCode)
reasonCode
- int the reason of close connectionstatic int convertAuthCodeToReasonCode(net.kano.joustsim.oscar.oscar.loginstatus.AuthFailureInfo afi)
afi
- AuthFailureInfo the failure info
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.