flux.file
Interface NetworkHost

All Superinterfaces:
Host
All Known Subinterfaces:
FtpHost, FtpSslHost, SecureFtpHost, UncHost

public interface NetworkHost
extends Host

Abstract interface that represents a computer on a network.

Author:
Copyright 2014 Flux Corporation. All rights reserved.

Method Summary
 java.lang.String getName()
          Returns the name of the network host.
 java.lang.String getPassword()
          Returns the password for the network host.
 int getPort()
          Returns the network port for the network host.
 java.lang.String getPortAsString()
          Returns the network port for the network host.
 java.lang.String getUsername()
          Returns the username for the network host.
 void setName(java.lang.String name)
          Sets the name of the network host.
 void setPassword(java.lang.String password)
          Sets the password for the network host.
 void setPort(int port)
          Sets the network port for the network host.
 void setPortAsString(java.lang.String port)
          Sets the network port for the network host.
 void setUsername(java.lang.String username)
          Sets the username for the network host.
 

Method Detail

getName

java.lang.String getName()
Returns the name of the network host.

Returns:
The name of the network host.

getPassword

java.lang.String getPassword()
Returns the password for the network host.

Returns:
The password for the network host.

getPort

int getPort()
Returns the network port for the network host. Returns the same Port property as getPortAsString().

Returns:
The network port for the network host.
See Also:
getPortAsString()

getPortAsString

java.lang.String getPortAsString()
Returns the network port for the network host. Returns the same Port property as getPort().

Returns:
The network port for the network host.
See Also:
getPort()

getUsername

java.lang.String getUsername()
Returns the username for the network host.

Returns:
The username for the network host.

setName

void setName(java.lang.String name)
Sets the name of the network host.

Parameters:
name - The name of the network host.

setPassword

void setPassword(java.lang.String password)
Sets the password for the network host.

Parameters:
password - The password for the network host.

setPort

void setPort(int port)
Sets the network port for the network host. Sets the same Port property as setPortAsString().

Parameters:
port - The network port for the network host.
See Also:
setPortAsString(java.lang.String)

setPortAsString

void setPortAsString(java.lang.String port)
Sets the network port for the network host. Sets the same Port property as setPort().

Parameters:
port - The network port for the network host.
See Also:
setPort(int)

setUsername

void setUsername(java.lang.String username)
Sets the username for the network host.

Parameters:
username - The username for the network host.


© 2014 Flux Corporation. All rights reserved.