JML

net.sf.jml.protocol.incoming
Class IncomingXFR

java.lang.Object
  extended by net.sf.jml.protocol.MsnMessage
      extended by net.sf.jml.protocol.MsnIncomingMessage
          extended by net.sf.jml.protocol.incoming.IncomingXFR

public class IncomingXFR
extends MsnIncomingMessage

Call to start a new switchboard or redirect to other NS server.

Supported Protocol: All

Syntax 1: XFR trId NS reconnectIP:reconnectPort 0 currentIP:currentPort

Syntax 2: XFR trId SB SBIP:SBPort CKI authStr

Syntax 1 is the response of OutgoingUSR. For example: XFR 2 NS 207.46.106.145:1863 0 207.46.104.20:1863, indicate the NS address.

Syntax 2 is thre response of OutgoingXFR. For example: XFR 10 SB 207.46.108.37:1863 CKI 17262740.1050826919.32308, indicate the SB address.

Author:
Roger Chen

Field Summary
 
Fields inherited from class net.sf.jml.protocol.MsnMessage
protocol
 
Constructor Summary
IncomingXFR(MsnProtocol protocol)
           
 
Method Summary
 String getAuthenticationStr()
           
 String getReconnectHost()
           
 int getReconnectPort()
           
 boolean isTransferredToSwitchboard()
           
protected  void messageReceived(MsnSession session)
          The message have received.
 
Methods inherited from class net.sf.jml.protocol.MsnIncomingMessage
getOutgoingMessage
 
Methods inherited from class net.sf.jml.protocol.MsnMessage
addParam, asString, clearParams, getChunkData, getCommand, getParam, getParamCount, getProtocol, getTransactionId, isSupportChunkData, isSupportTransactionId, load, save, setChunkData, setChunkData, setCommand, setParam, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IncomingXFR

public IncomingXFR(MsnProtocol protocol)
Method Detail

isTransferredToSwitchboard

public boolean isTransferredToSwitchboard()

getReconnectHost

public String getReconnectHost()

getReconnectPort

public int getReconnectPort()

getAuthenticationStr

public String getAuthenticationStr()

messageReceived

protected void messageReceived(MsnSession session)
Description copied from class: MsnIncomingMessage
The message have received.

Overrides:
messageReceived in class MsnIncomingMessage
Parameters:
session - the MsnSession which received the message

JML