|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jwo.vfc.hubclient.HubClient
Creates a connection with a VFC Hub server. Allows simple messages to be sent to the server, and listens to any replies.
Constructor Summary | |
HubClient(String host,
int port)
Sets up a connection with the Hub server and sends a default message. |
|
HubClient(String host,
int port,
String outDir,
String message)
Connects with, and sends a given message to the Hub server. |
|
HubClient(String host,
int port,
String login,
String password,
String outDir,
String message)
Connects with, and sends a given message to the Hub server with security restrictions. |
|
HubClient(String host,
int port,
String login,
String password,
String outDir,
String returned,
String message)
Connects with, and sends a given message to the Hub server with security restrictions and output options. |
|
HubClient(String configFile,
String message)
Sets up a connection with the Hub server defined in the given configuration file and sends a given message. |
Method Summary | |
static String |
getConfigHost(String configFile)
Returns the host identified in the given configuration file. |
static String |
getConfigLogin(String configFile)
Returns the login name identified in the given configuration file. |
static String |
getConfigOutput(String configFile)
Returns the output directory identified in the given configuration file. |
static String |
getConfigPassword(String configFile)
Returns the user password identified in the given configuration file. |
static int |
getConfigPort(String configFile)
Returns the port identified in the given configuration file. |
static String |
getConfigReturned(String configFile)
Returns the 'returned' metadata items identified in the given configuration file. |
String |
getFileName()
Reports the file name and relative directory of any transfered file about to be written. |
String |
getMessage()
Reports the response from the server after a message has been sent. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HubClient(String host, int port)
host
- Host running the hub server.port
- Port number to connect via.public HubClient(String configFile, String message)
configFile
- Name of file storing host information.message
- Message to send to Hub server.public HubClient(String host, int port, String outDir, String message)
host
- Host running the hub server.port
- Port number to connect via.outDir
- Directory containing output.message
- Message to send to server.public HubClient(String host, int port, String login, String password, String outDir, String message)
host
- Host running the hub server.port
- Port number to connect via.login
- Login name for secure access.password
- Password for secure access.outDir
- Directory containing output.message
- Message to send to server.public HubClient(String host, int port, String login, String password, String outDir, String returned, String message)
host
- Host running the hub server.port
- Port number to connect via.login
- Login name for secure access.password
- Password for secure access.outDir
- Directory containing output.returned
- Metadata items to be returned when 'ifPreferred' selected.message
- Message to send to server.Method Detail |
public String getMessage()
public String getFileName()
public static String getConfigHost(String configFile)
configFile
- Name of configuration file.
public static int getConfigPort(String configFile)
configFile
- Name of configuration file.
public static String getConfigLogin(String configFile)
configFile
- Name of configuration file.
public static String getConfigPassword(String configFile)
configFile
- Name of configuration file.
public static String getConfigOutput(String configFile)
configFile
- Name of configuration file.
public static String getConfigReturned(String configFile)
configFile
- Name of configuration file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |