Package sfs2x.client.util
Class ConfigData
- java.lang.Object
-
- sfs2x.client.util.ConfigData
-
public class ConfigData extends java.lang.ObjectThe ConfigData class stores the client configuration data loaded from an external XML file or passed directly to the deputy connect method. The external configuration file is loaded by the SmartFox class when its loadConfig() method is called. Otherwise it can be passed directly to the connect(ConfigData) method of the SmartFox class.
-
-
Constructor Summary
Constructors Constructor Description ConfigData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBboxHost()Specifies the IP address or host name of the BlueBox.intgetBboxPollingRate()Specifies the BlueBox polling speed.java.lang.StringgetHost()Specifies the IP address or host name of the SmartFoxServer 2X instance to connect to (TCP connection).intgetHttpPort()Specifies the port for generic HTTP communication.intgetHttpsPort()Specifies the port for HTTPS communication.intgetPort()Specifies the TCP port of the SmartFoxServer 2X instance to connect to (TCP connection).java.lang.StringgetUdpHost()Specifies the IP address of the SmartFoxServer 2X instance to connect to (UDP connection).intgetUdpPort()Specifies the UDP port of the SmartFoxServer 2X instance to connect to (UDP connection).java.lang.StringgetZone()Specifies the Zone of the SmartFoxServer 2X instance to join.booleanisDebug()Indicates whether the client-server messages debug should be enabled or not.booleanisUseBBox()Indicates whether the SmartFoxServer's BlueBox should be enabled or not.voidsetBboxHost(java.lang.String bboxHost)voidsetBboxPollingRate(int bboxPollingRate)voidsetDebug(boolean debug)voidsetHost(java.lang.String host)voidsetHttpPort(int httpPort)voidsetHttpsPort(int httpsPort)voidsetPort(int port)voidsetUdpHost(java.lang.String udpHost)voidsetUdpPort(int udpPort)voidsetUseBBox(boolean useBBox)voidsetZone(java.lang.String zone)
-
-
-
Method Detail
-
isDebug
public boolean isDebug()
Indicates whether the client-server messages debug should be enabled or not. The default value isfalse.- See Also:
setDebug(boolean)
-
setDebug
public void setDebug(boolean debug)
- See Also:
isDebug()
-
getHost
public java.lang.String getHost()
Specifies the IP address or host name of the SmartFoxServer 2X instance to connect to (TCP connection). The default value is127.0.0.1.- See Also:
setHost(String)
-
setHost
public void setHost(java.lang.String host)
- See Also:
getHost()
-
getPort
public int getPort()
Specifies the TCP port of the SmartFoxServer 2X instance to connect to (TCP connection). The default value is9933.- See Also:
setPort(int)
-
setPort
public void setPort(int port)
- See Also:
getPort()
-
getUdpHost
public java.lang.String getUdpHost()
Specifies the IP address of the SmartFoxServer 2X instance to connect to (UDP connection). The default value is127.0.0.1.- See Also:
setUdpHost(String)
-
setUdpHost
public void setUdpHost(java.lang.String udpHost)
- See Also:
getUdpHost()
-
getUdpPort
public int getUdpPort()
Specifies the UDP port of the SmartFoxServer 2X instance to connect to (UDP connection). The default value is9933.- See Also:
setUdpPort(int)
-
setUdpPort
public void setUdpPort(int udpPort)
- See Also:
getUdpPort()
-
isUseBBox
public boolean isUseBBox()
Indicates whether the SmartFoxServer's BlueBox should be enabled or not. The default value istrue.- See Also:
setUseBBox(boolean)
-
setUseBBox
public void setUseBBox(boolean useBBox)
- See Also:
isUseBBox()
-
getBboxHost
public java.lang.String getBboxHost()
Specifies the IP address or host name of the BlueBox. The default value isnull.- See Also:
setBboxHost(String)
-
setBboxHost
public void setBboxHost(java.lang.String bboxHost)
- See Also:
getBboxHost()
-
getBboxPollingRate
public int getBboxPollingRate()
Specifies the BlueBox polling speed. The default value is750.- See Also:
setBboxPollingRate(int)
-
setBboxPollingRate
public void setBboxPollingRate(int bboxPollingRate)
- See Also:
getBboxPollingRate()
-
getHttpPort
public int getHttpPort()
Specifies the port for generic HTTP communication. The default value is8080.- See Also:
setHttpPort(int)
-
setHttpPort
public void setHttpPort(int httpPort)
- See Also:
getHttpPort()
-
getZone
public java.lang.String getZone()
Specifies the Zone of the SmartFoxServer 2X instance to join. The default value isnull.- See Also:
setZone(String)
-
setZone
public void setZone(java.lang.String zone)
- See Also:
getZone()
-
getHttpsPort
public int getHttpsPort()
Specifies the port for HTTPS communication. E.g. the initialization of an encrypted connection The default value is8443.- See Also:
setHttpPort(int)
-
setHttpsPort
public void setHttpsPort(int httpsPort)
- See Also:
getHttpsPort()
-
-