Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.jabberaccregwizz
Class JabberAccountRegistration

java.lang.Object
  extended by net.java.sip.communicator.plugin.jabberaccregwizz.JabberAccountRegistration

public class JabberAccountRegistration
extends Object

The JabberAccountRegistration is used to store all user input data through the JabberAccountRegistrationWizard.

Author:
Yana Stamcheva

Field Summary
static String DEFAULT_PORT
          The default value of server port for jabber accounts.
static String DEFAULT_PRIORITY
          The default value of the priority property.
static String DEFAULT_RESOURCE
          The default value of the resource property.
static boolean DEFAULT_RESOURCE_AUTOGEN
          Default value for resource auto generating.
static String DEFAULT_STUN_PORT
          The default value of stun server port for jabber accounts.
 
Constructor Summary
JabberAccountRegistration()
           
 
Method Summary
 void addJingleNodes(JingleNodeDescriptor node)
          Adds the given node to the list of additional JingleNodes.
 void addStunServer(StunServerDescriptor stunServer)
          Adds the given stunServer to the list of additional stun servers.
 String getAccountDisplayName()
          Returns the account display name.
 List<JingleNodeDescriptor> getAdditionalJingleNodes()
          Returns the List of all additional stun servers entered by the user.
 List<StunServerDescriptor> getAdditionalStunServers()
          Returns the List of all additional stun servers entered by the user.
 boolean getBypassGtalkCaps()
          Returns the alwaysCallWithGtalk value.
 String getDefaultDTMFMethod()
           
 String getDefaultUserSufix()
          Returns the user sufix.
 String getDTMFMethod()
          Returns the DTMF method.
 String getOverridePhoneSuffix()
          Returns the override phone suffix.
 String getPassword()
          Returns the password of the jabber registration account.
 int getPort()
          The port on the specified server
 int getPriority()
          Returns the priority property.
 String getResource()
          Returns the resource.
 String getServerAddress()
          The address of the server we will use for this account
 String getSmsServerAddress()
          Returns the default sms server.
 String getTelephonyDomainBypassCaps()
          Returns telephony domain that bypass GTalk caps.
 String getUserID()
          Returns the User ID of the jabber registration account.
 boolean isAllowNonSecure()
          Indicates if non-TLS is allowed for this account
 boolean isAutoDiscoverJingleNodes()
          Indicates if the JingleNodes relay server should be automatically discovered.
 boolean isAutoDiscoverStun()
          Indicates if the stun server should be automatically discovered.
 boolean isGmailNotificationEnabled()
          Determines whether SIP Communicator should be querying Gmail servers for unread mail messages.
 boolean isGoogleContactsEnabled()
          Determines whether SIP Communicator should use Google Contacts as ContactSource
 boolean isRememberPassword()
          Returns TRUE if password has to remembered, FALSE otherwise.
 boolean isResourceAutogenerated()
          Is resource auto generate enabled.
 boolean isSendKeepAlive()
          Determines whether sending of keep alive packets is enabled.
 boolean isServerOverridden()
          Indicates if the server address has been overridden.
 boolean isUseDefaultStunServer()
          Indicates if the stun server should be automatically discovered.
 boolean isUseGoogleIce()
          Indicates if ice should be used for this account.
 boolean isUseIce()
          Indicates if ice should be used for this account.
 boolean isUseJingleNodes()
          Indicates if JingleNodes relay should be used.
 void isUseJingleNodes(boolean isUseJingleNodes)
          Sets the useJingleNodes property.
 boolean isUseUPNP()
          Indicates if UPnP should be used for this account.
 void setAccountDisplayName(String accountDisplayName)
          Sets the account display name.
 void setAllowNonSecure(boolean isAllowNonSecure)
          Sets the isAllowNonSecure property.
 void setAutoDiscoverJingleNodes(boolean isAutoDiscover)
          Sets the autoDiscoverJingleNodes property.
 void setAutoDiscoverStun(boolean isAutoDiscover)
          Sets the autoDiscoverStun property.
 void setBypassGtalkCaps(boolean bypassGtalkCaps)
          Sets value for alwaysCallWithGtalk.
 void setDefaultDTMFMethod(String defaultDTMFMethod)
           
 void setDefaultUserSufix(String userSufix)
          Sets the default value of the user sufix.
 void setDTMFMethod(String dtmfMethod)
          Sets the DTMF method.
 void setGmailNotificationEnabled(boolean enabled)
          Specifies whether SIP Communicator should be querying Gmail servers for unread mail messages.
 void setGoogleContactsEnabled(boolean enabled)
          Specifies whether SIP Communicator should use Google Contacts as ContactSource.
 void setOverridePhoneSufix(String phoneSuffix)
          Sets the override value of the phone suffix.
 void setPassword(String password)
          Sets the password of the jabber registration account.
 void setPort(int port)
          Sets the server port number.
 void setPriority(int priority)
          Sets the priority property.
 void setRememberPassword(boolean rememberPassword)
          Sets the rememberPassword value of this jabber account registration.
 void setResource(String resource)
          Sets the resource.
 void setResourceAutogenerated(boolean resourceAutogenerated)
          Set whether resource autogenerate is enabled.
 void setSendKeepAlive(boolean sendKeepAlive)
          Specifies whether SIP Communicator should send send keep alive packets to keep this account registered.
 void setServerAddress(String serverAddress)
          Sets the server
 void setServerOverridden(boolean isServerOverridden)
          Sets isServerOverridden property.
 void setSmsServerAddress(String serverAddress)
          Sets the default sms server.
 void setTelephonyDomainBypassCaps(String text)
          Sets telephony domain that bypass GTalk caps.
 void setUseDefaultStunServer(boolean isUseDefaultStunServer)
          Sets the useDefaultStunServer property.
 void setUseGoogleIce(boolean isUseIce)
          Sets the useGoogleIce property.
 void setUseIce(boolean isUseIce)
          Sets the useIce property.
 void setUseJingleNodes(boolean isUseJingleNodes)
          Sets the useJingleNodes property.
 void setUserID(String userID)
          Sets the User ID of the jabber registration account.
 void setUseUPNP(boolean isUseUPNP)
          Sets the useUPNP property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final String DEFAULT_PORT
The default value of server port for jabber accounts.

See Also:
Constant Field Values

DEFAULT_PRIORITY

public static final String DEFAULT_PRIORITY
The default value of the priority property.

See Also:
Constant Field Values

DEFAULT_RESOURCE

public static final String DEFAULT_RESOURCE
The default value of the resource property.

See Also:
Constant Field Values

DEFAULT_STUN_PORT

public static final String DEFAULT_STUN_PORT
The default value of stun server port for jabber accounts.

See Also:
Constant Field Values

DEFAULT_RESOURCE_AUTOGEN

public static final boolean DEFAULT_RESOURCE_AUTOGEN
Default value for resource auto generating.

See Also:
Constant Field Values
Constructor Detail

JabberAccountRegistration

public JabberAccountRegistration()
Method Detail

getPassword

public String getPassword()
Returns the password of the jabber registration account.

Returns:
the password of the jabber registration account.

setPassword

public void setPassword(String password)
Sets the password of the jabber registration account.

Parameters:
password - the password of the jabber registration account.

isRememberPassword

public boolean isRememberPassword()
Returns TRUE if password has to remembered, FALSE otherwise.

Returns:
TRUE if password has to remembered, FALSE otherwise

setRememberPassword

public void setRememberPassword(boolean rememberPassword)
Sets the rememberPassword value of this jabber account registration.

Parameters:
rememberPassword - TRUE if password has to remembered, FALSE otherwise

getUserID

public String getUserID()
Returns the User ID of the jabber registration account.

Returns:
the User ID of the jabber registration account.

getDefaultUserSufix

public String getDefaultUserSufix()
Returns the user sufix.

Returns:
the user sufix

getOverridePhoneSuffix

public String getOverridePhoneSuffix()
Returns the override phone suffix.

Returns:
the phone suffix

getBypassGtalkCaps

public boolean getBypassGtalkCaps()
Returns the alwaysCallWithGtalk value.

Returns:
the alwaysCallWithGtalk value

getTelephonyDomainBypassCaps

public String getTelephonyDomainBypassCaps()
Returns telephony domain that bypass GTalk caps.

Returns:
telephony domain

getServerAddress

public String getServerAddress()
The address of the server we will use for this account

Returns:
String

getPort

public int getPort()
The port on the specified server

Returns:
the server port

isSendKeepAlive

public boolean isSendKeepAlive()
Determines whether sending of keep alive packets is enabled.

Returns:
true if keep alive packets are to be sent for this account and false otherwise.

isGmailNotificationEnabled

public boolean isGmailNotificationEnabled()
Determines whether SIP Communicator should be querying Gmail servers for unread mail messages.

Returns:
true if we are to enable Gmail notifications and false otherwise.

isGoogleContactsEnabled

public boolean isGoogleContactsEnabled()
Determines whether SIP Communicator should use Google Contacts as ContactSource

Returns:
true if we are to enable Google Contacts and false otherwise.

setUserID

public void setUserID(String userID)
Sets the User ID of the jabber registration account.

Parameters:
userID - the identifier of the jabber registration account.

setDefaultUserSufix

public void setDefaultUserSufix(String userSufix)
Sets the default value of the user sufix.

Parameters:
userSufix - the user name sufix (the domain name after the @ sign)

setOverridePhoneSufix

public void setOverridePhoneSufix(String phoneSuffix)
Sets the override value of the phone suffix.

Parameters:
phoneSuffix - the phone name suffix (the domain name after the @ sign)

setBypassGtalkCaps

public void setBypassGtalkCaps(boolean bypassGtalkCaps)
Sets value for alwaysCallWithGtalk.

Parameters:
bypassGtalkCaps - true to enable, false otherwise

setTelephonyDomainBypassCaps

public void setTelephonyDomainBypassCaps(String text)
Sets telephony domain that bypass GTalk caps.

Parameters:
text - telephony domain to set

setServerAddress

public void setServerAddress(String serverAddress)
Sets the server

Parameters:
serverAddress - the IP address or FQDN of the server.

isServerOverridden

public boolean isServerOverridden()
Indicates if the server address has been overridden.

Returns:
true if the server address has been overridden, false - otherwise.

setServerOverridden

public void setServerOverridden(boolean isServerOverridden)
Sets isServerOverridden property.

Parameters:
isServerOverridden - indicates if the server is overridden

setPort

public void setPort(int port)
Sets the server port number.

Parameters:
port - the server port number

setSendKeepAlive

public void setSendKeepAlive(boolean sendKeepAlive)
Specifies whether SIP Communicator should send send keep alive packets to keep this account registered.

Parameters:
sendKeepAlive - true if we are to send keep alive packets and false otherwise.

setGmailNotificationEnabled

public void setGmailNotificationEnabled(boolean enabled)
Specifies whether SIP Communicator should be querying Gmail servers for unread mail messages.

Parameters:
enabled - true if we are to enable Gmail notification and false otherwise.

setGoogleContactsEnabled

public void setGoogleContactsEnabled(boolean enabled)
Specifies whether SIP Communicator should use Google Contacts as ContactSource.

Parameters:
enabled - true if we are to enable Google Contacts and false otherwise.

getResource

public String getResource()
Returns the resource.

Returns:
the resource

setResource

public void setResource(String resource)
Sets the resource.

Parameters:
resource - the resource for the jabber account

getPriority

public int getPriority()
Returns the priority property.

Returns:
priority

setPriority

public void setPriority(int priority)
Sets the priority property.

Parameters:
priority - the priority to set

isUseIce

public boolean isUseIce()
Indicates if ice should be used for this account.

Returns:
true if ICE should be used for this account, otherwise returns false

setUseIce

public void setUseIce(boolean isUseIce)
Sets the useIce property.

Parameters:
isUseIce - true to indicate that ICE should be used for this account, false - otherwise.

isUseGoogleIce

public boolean isUseGoogleIce()
Indicates if ice should be used for this account.

Returns:
true if ICE should be used for this account, otherwise returns false

setUseGoogleIce

public void setUseGoogleIce(boolean isUseIce)
Sets the useGoogleIce property.

Parameters:
isUseIce - true to indicate that ICE should be used for this account, false - otherwise.

isAutoDiscoverStun

public boolean isAutoDiscoverStun()
Indicates if the stun server should be automatically discovered.

Returns:
true if the stun server should be automatically discovered, otherwise returns false.

setAutoDiscoverStun

public void setAutoDiscoverStun(boolean isAutoDiscover)
Sets the autoDiscoverStun property.

Parameters:
isAutoDiscover - true to indicate that stun server should be auto-discovered, false - otherwise.

isUseDefaultStunServer

public boolean isUseDefaultStunServer()
Indicates if the stun server should be automatically discovered.

Returns:
true if the stun server should be automatically discovered, otherwise returns false.

setUseDefaultStunServer

public void setUseDefaultStunServer(boolean isUseDefaultStunServer)
Sets the useDefaultStunServer property.

Parameters:
isUseDefaultStunServer - true to indicate that default stun server should be used if no others are available, false otherwise.

addStunServer

public void addStunServer(StunServerDescriptor stunServer)
Adds the given stunServer to the list of additional stun servers.

Parameters:
stunServer - the StunServer to add

getAdditionalStunServers

public List<StunServerDescriptor> getAdditionalStunServers()
Returns the List of all additional stun servers entered by the user. The list is guaranteed not to be null.

Returns:
the List of all additional stun servers entered by the user.

setAutoDiscoverJingleNodes

public void setAutoDiscoverJingleNodes(boolean isAutoDiscover)
Sets the autoDiscoverJingleNodes property.

Parameters:
isAutoDiscover - true to indicate that relay server should be auto-discovered, false - otherwise.

isAutoDiscoverJingleNodes

public boolean isAutoDiscoverJingleNodes()
Indicates if the JingleNodes relay server should be automatically discovered.

Returns:
true if the relay server should be automatically discovered, otherwise returns false.

setUseJingleNodes

public void setUseJingleNodes(boolean isUseJingleNodes)
Sets the useJingleNodes property.

Parameters:
isUseJingleNodes - true to indicate that Jingle Nodes should be used for this account, false - otherwise.

isUseJingleNodes

public void isUseJingleNodes(boolean isUseJingleNodes)
Sets the useJingleNodes property.

Parameters:
isUseJingleNodes - true to indicate that JingleNodes relays should be used for this account, false - otherwise.

isUseJingleNodes

public boolean isUseJingleNodes()
Indicates if JingleNodes relay should be used.

Returns:
true if JingleNodes should be used, false otherwise

addJingleNodes

public void addJingleNodes(JingleNodeDescriptor node)
Adds the given node to the list of additional JingleNodes.

Parameters:
node - the node to add

getAdditionalJingleNodes

public List<JingleNodeDescriptor> getAdditionalJingleNodes()
Returns the List of all additional stun servers entered by the user. The list is guaranteed not to be null.

Returns:
the List of all additional stun servers entered by the user.

isUseUPNP

public boolean isUseUPNP()
Indicates if UPnP should be used for this account.

Returns:
true if UPnP should be used for this account, otherwise returns false

setUseUPNP

public void setUseUPNP(boolean isUseUPNP)
Sets the useUPNP property.

Parameters:
isUseUPNP - true to indicate that UPnP should be used for this account, false - otherwise.

isAllowNonSecure

public boolean isAllowNonSecure()
Indicates if non-TLS is allowed for this account

Returns:
true if non-TLS is allowed for this account, otherwise returns false

setAllowNonSecure

public void setAllowNonSecure(boolean isAllowNonSecure)
Sets the isAllowNonSecure property.

Parameters:
isAllowNonSecure - true to indicate that non-TLS is allowed for this account, false - otherwise.

isResourceAutogenerated

public boolean isResourceAutogenerated()
Is resource auto generate enabled.

Returns:
true if resource is auto generated

setResourceAutogenerated

public void setResourceAutogenerated(boolean resourceAutogenerated)
Set whether resource autogenerate is enabled.

Parameters:
resourceAutogenerated -

getAccountDisplayName

public String getAccountDisplayName()
Returns the account display name.

Returns:
the account display name

setAccountDisplayName

public void setAccountDisplayName(String accountDisplayName)
Sets the account display name.

Parameters:
accountDisplayName - the account display name

getSmsServerAddress

public String getSmsServerAddress()
Returns the default sms server.

Returns:
the account default sms server

setSmsServerAddress

public void setSmsServerAddress(String serverAddress)
Sets the default sms server.

Parameters:
serverAddress - the sms server to set as default

getDTMFMethod

public String getDTMFMethod()
Returns the DTMF method.

Returns:
the DTMF method.

setDTMFMethod

public void setDTMFMethod(String dtmfMethod)
Sets the DTMF method.

Parameters:
dtmfMethod - the DTMF method to set

getDefaultDTMFMethod

public String getDefaultDTMFMethod()
Returns:
the defaultDTMFMethod

setDefaultDTMFMethod

public void setDefaultDTMFMethod(String defaultDTMFMethod)
Parameters:
defaultDTMFMethod - the defaultDTMFMethod to set

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.