publish
plugins.it2be_tools.ITServer info


Servoy Properties Summary
String fileSeparator
String hostName
String ip
Array<Object> ipAddress
String javaVendor
String javaVendorURL
String javaVersion
String lineSeparator
Array<Object> macAddress
String osArchitecture
String osName
Number osNumber
String osVersion
String pathSeparator
String tempDir
String userDir
String userHome
String userName


Servoy Methods Summary
Boolean createDirectory( String )
Boolean deleteFile( String )
Boolean directoryExists( String )
Boolean fileExists( String )
Object readFile( String )
String readTXTFile( String, String )
String readTXTFile( String )
Boolean writeFile( String, Object )
Boolean writeTXTFile( String, String )
Boolean writeTXTFile( String, String, String )


Servoy Properties Details


fileSeparator
String  fileSeparator
File separator ('/' on UNIX).
Returns
String  separator String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


hostName
String  hostName
Retrieve the hostname of the server.
Returns
String  host String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


ip
String  ip
Retrieve the IP address of the server.
Returns
String  address String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


ipAddress
Array<Object>  ipAddress
Retrieve the IP addresses of the server.
Returns
Array<Object>  addresses Object[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


javaVendor
String  javaVendor
Java Runtime Environment vendor.
Returns
String  vendor String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


javaVendorURL
String  javaVendorURL
Java vendor URL.
Returns
String  url String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


javaVersion
String  javaVersion
Java Runtime Environment version.
Returns
String  version String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


lineSeparator
String  lineSeparator
Line separator ('\n' on UNIX).
Returns
String  separator String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


macAddress
Array<Object>  macAddress
Get the mac addresses of the server
Returns
Array<Object>  addresses Object[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


osArchitecture
String  osArchitecture
Operating system architecture.
Returns
String  architecture String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


osName
String  osName
Operating system name.
Returns
String  name String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


osNumber
Number  osNumber
Operating system number (1=Mac OS, 2=Linux, 3=Windows).
Returns
Number  os int

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


osVersion
String  osVersion
Operating system version.
Returns
String  version String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


pathSeparator
String  pathSeparator
Path separator (':' on UNIX).
Returns
String  separator String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


tempDir
String  tempDir
Default temp file path.
Returns
String  directory String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


userDir
String  userDir
User's current working directory.
Returns
String  directory String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


userHome
String  userHome
User's home directory.
Returns
String  home String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


userName
String  userName
User's account name.
Returns
String  username String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);

Servoy Methods Details


createDirectory
Boolean  createDirectory( String )
Create a directory including its parents when they do not exist.
Parameters
String  directory  the directory

Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


deleteFile
Boolean  deleteFile( String )
Delete a file on the server (default is the Servoy server root).
Parameters
String  file  the file

Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// create a file, read the file and delete it;
plugins.it2be_tools.server().writeTXTFile("server/webapps/ROOT/test.htm", "This file was written to the Servoy tomcat root
using the IT2Be tools plugin..
"); application.showURL("http://"+plugins.it2be_tools.server().IP+":8080/test.htm"); application.output(plugins.it2be_tools.server().readTXTFile("server/webapps/ROOT/test.htm")); application.output(plugins.it2be_tools.server().deleteFile("server/webapps/ROOT/test.htm"));


directoryExists
Boolean  directoryExists( String )
Check that a directory really exists on the server.
Parameters
String  file  the file

Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient


fileExists
Boolean  fileExists( String )
Check that a file or directory really exists on the server.
Parameters
String  file  the file

Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient


readFile
Object  readFile( String )
Read a binary file from the server (default is the Servoy server root).
Parameters
String  file  the file

Returns
Object  content Object

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


readTXTFile
String  readTXTFile( String, String )
Read a text file
Parameters
String  file  the file
String  encoding  the encoding

Returns
String  content String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// create a file, read the file and delete it
plugins.it2be_tools.server().writeTXTFile("server/webapps/ROOT/test.htm", "This file was written to the Servoy tomcat root
using the IT2Be tools plugin..
"); application.showURL("http://"+plugins.it2be_tools.server().IP+":8080/test.htm"); application.output(plugins.it2be_tools.server().readTXTFile("server/webapps/ROOT/test.htm")); application.output(plugins.it2be_tools.server().deleteFile("server/webapps/ROOT/test.htm"));


readTXTFile
String  readTXTFile( String )
Read a text file
Parameters
String  file  the file

Returns
String  content String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// create a file, read the file and delete it
plugins.it2be_tools.server().writeTXTFile("server/webapps/ROOT/test.htm", "This file was written to the Servoy tomcat root
using the IT2Be tools plugin..
"); application.showURL("http://"+plugins.it2be_tools.server().IP+":8080/test.htm"); application.output(plugins.it2be_tools.server().readTXTFile("server/webapps/ROOT/test.htm")); application.output(plugins.it2be_tools.server().deleteFile("server/webapps/ROOT/test.htm"));


writeFile
Boolean  writeFile( String, Object )
Write a binary file to the server (default is the Servoy server root).
Parameters
String  file  the file
Object  content  the content

Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Retrieve ITServer data
var message =
"Summary of server system properties:\n" +
"IP address:\t\t" + plugins.it2be_tools.client().IP + "\n";

var addresses = plugins.it2be_tools.client().MACAddress;
if (addresses) {
for (var i = 0 ; i < addresses.length ; i++) {
message += "MAC address " + (i + 1) + ":\t\t" + addresses[i] + "\n";
}
} else {
message += "MAC address(es):\t\tnot available" + "\n";
}

message +=
"Host name:\t\t" + plugins.it2be_tools.server().hostName + "\n\n" +
"Java vendor:\t\t" + plugins.it2be_tools.server().javaVendor + "\n" +
"Java vendor URL:\t" + plugins.it2be_tools.server().javaVendorURL + "\n" +
"Java version:\t\t" + plugins.it2be_tools.server().javaVersion + "\n\n" +
"OS architecture:\t" + plugins.it2be_tools.server().osArchitecture + "\n" +
"OS name:\t\t" + plugins.it2be_tools.server().osName + "\n" +
"OS number:\t\t" + plugins.it2be_tools.server().osNumber + "\n" +
"OS version:\t\t" + plugins.it2be_tools.server().osVersion + "\n\n" +
"Temp directory:\t\t" + plugins.it2be_tools.server().tempDir + "\n" +
"User directory:\t\t" + plugins.it2be_tools.server().userDir + "\n" +
"User home:\t\t" + plugins.it2be_tools.server().userHome + "\n" +
"User name:\t\t" + plugins.it2be_tools.server().userName + "\n\n" +
"Path separator:\t\t" + plugins.it2be_tools.server().pathSeparator + "\n" +
"File Separator:\t\t" + plugins.it2be_tools.server().fileSeparator + "\n" +
"Line separator:\t\t" + plugins.it2be_tools.server().lineSeparator;

application.output(message);


writeTXTFile
Boolean  writeTXTFile( String, String )
Write a text file
Parameters
String  file  the file
String  content  the content

Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// get the (first) MAC address of the server
// and write it to a .txt file in the Servoy root directory
var server = plugins.it2be_tools.server();
server.writeTXTFile("test.txt", server.MACAddress[0]);


writeTXTFile
Boolean  writeTXTFile( String, String, String )
Write a text file
Parameters
String  file  the file
String  content  the content
String  encoding  the encoding

Returns
Boolean  result boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// get the (first) MAC address of the server
// and write it to a .txt file in the Servoy root directory
var server = plugins.it2be_tools.server();
server.writeTXTFile("test.txt", server.MACAddress[0]);