JML

net.sf.jml.impl
Class MsnConnectionImpl

java.lang.Object
  extended by net.sf.jml.impl.MsnConnectionImpl
All Implemented Interfaces:
MsnConnection

public class MsnConnectionImpl
extends Object
implements MsnConnection

Author:
Roger Chen

Constructor Summary
MsnConnectionImpl()
           
 
Method Summary
 MsnConnectionType getConnectionType()
          Get connection type, if don't known, return null.
 String getExternalIP()
          Get ip external.
 int getExternalPort()
          Get port external.
 String getInternalIP()
          Get ip internal.
 int getInternalPort()
          Get port internal.
 String getRemoteIP()
          Get the remote ip.
 int getRemotePort()
          Get remote port.
 void setConnectionType(MsnConnectionType connectionType)
           
 void setExternalIP(String externalIP)
           
 void setExternalPort(int externalPort)
           
 void setInternalIP(String internalIP)
           
 void setInternalPort(int internalPort)
           
 void setRemoteIP(String remoteIP)
           
 void setRemotePort(int remotePort)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MsnConnectionImpl

public MsnConnectionImpl()
Method Detail

getExternalIP

public String getExternalIP()
Description copied from interface: MsnConnection
Get ip external. If don't known, return null.

Specified by:
getExternalIP in interface MsnConnection
Returns:
ip external

setExternalIP

public void setExternalIP(String externalIP)

getExternalPort

public int getExternalPort()
Description copied from interface: MsnConnection
Get port external. If don't known, return -1.

Specified by:
getExternalPort in interface MsnConnection
Returns:
port external

setExternalPort

public void setExternalPort(int externalPort)

getInternalIP

public String getInternalIP()
Description copied from interface: MsnConnection
Get ip internal.

Specified by:
getInternalIP in interface MsnConnection
Returns:
ip internal

setInternalIP

public void setInternalIP(String internalIP)

getInternalPort

public int getInternalPort()
Description copied from interface: MsnConnection
Get port internal.

Specified by:
getInternalPort in interface MsnConnection
Returns:
port internal

setInternalPort

public void setInternalPort(int internalPort)

getRemoteIP

public String getRemoteIP()
Description copied from interface: MsnConnection
Get the remote ip.

Specified by:
getRemoteIP in interface MsnConnection
Returns:
remote ip

setRemoteIP

public void setRemoteIP(String remoteIP)

getRemotePort

public int getRemotePort()
Description copied from interface: MsnConnection
Get remote port.

Specified by:
getRemotePort in interface MsnConnection
Returns:
remote port

setRemotePort

public void setRemotePort(int remotePort)

getConnectionType

public MsnConnectionType getConnectionType()
Description copied from interface: MsnConnection
Get connection type, if don't known, return null.

Specified by:
getConnectionType in interface MsnConnection
Returns:
connection type

setConnectionType

public void setConnectionType(MsnConnectionType connectionType)

JML