AdventNet WiFi Mediation API, v1.0

com.adventnet.wifi.mediation
Class TftpCredentials

java.lang.Object
  extended bycom.adventnet.wifi.mediation.TftpCredentials

public class TftpCredentials
extends java.lang.Object

Class holding the TFTP related properties, which will be used by the WiFi Mediation for upgrading firmwares.

See Also:
FirmwareBean, MediationAPI.upgradeFirmware(Device,com.adventnet.wifi.mediation.beans.FirmwareBean)

Constructor Summary
TftpCredentials()
          Creates an instance of TftpCredentials with default values (Port taking the value of 69).
TftpCredentials(java.lang.String serverName)
          Creates an instance of TftpCredentials with the given serverName.
TftpCredentials(java.lang.String serverName, int port)
          Creates an instance of TftpCredentials with the given serverName & Port.
 
Method Summary
 int getPort()
          Returns the TFTP Server's Port that has been set using the setPort(int).
 java.lang.String getServerName()
          Returns the TFTP Server's name/IP Address that has been set using the setServerName(String).
 void setPort(int port)
          Method to set the port of the TFTP Server.
 void setServerName(java.lang.String serverName)
          Method to set the name/IP Address of the TFTP Server,where firmware images are available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TftpCredentials

public TftpCredentials()
Creates an instance of TftpCredentials with default values (Port taking the value of 69). Users need to call the setServerName(String) for assigning the TFTP Server Address.

See Also:
setServerName(String), setPort(int)

TftpCredentials

public TftpCredentials(java.lang.String serverName)
Creates an instance of TftpCredentials with the given serverName. TFTP Server's Port will be assigned to its default value of 69.

Parameters:
serverName - Name or IP Address of the TFTP Server where Firmware Images are available.

TftpCredentials

public TftpCredentials(java.lang.String serverName,
                       int port)
Creates an instance of TftpCredentials with the given serverName & Port.

Parameters:
serverName - Name or IP Address of the TFTP Server where Firmware Images are available.
port - Port Number where TFTP Server is listening.
Method Detail

setServerName

public void setServerName(java.lang.String serverName)
Method to set the name/IP Address of the TFTP Server,where firmware images are available.


setPort

public void setPort(int port)
Method to set the port of the TFTP Server.


getServerName

public java.lang.String getServerName()
Returns the TFTP Server's name/IP Address that has been set using the setServerName(String).


getPort

public int getPort()
Returns the TFTP Server's Port that has been set using the setPort(int).


AdventNet WiFi Mediation API, v1.0

Copyright © 2005 AdventNet Inc. All Rights Reserved.