public class ClientNetUtilities extends AbstractNetUtilities
AbstractNetUtilities.TrustAllX509TrustManager
Constructor and Description |
---|
ClientNetUtilities(FPMIApp app) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
_getRemoteServers(java.lang.Boolean getRunningOnly)
Returns a list of Gateway Network servers that are visible on the local Gateway.
|
protected void |
_sendEmail(java.lang.String smtpSettingsName,
java.lang.String from,
java.lang.String subject,
java.lang.String body,
boolean html,
java.lang.String[] recipients,
java.lang.String[] ccRecipients,
java.lang.String[] bccRecipients,
java.lang.String[] attachNamesArg,
byte[][] attachBytesArg,
int timeout,
int retries,
java.lang.String priority)
Sends an email with or without authorization and attachments, depending an what arguments are
null.
|
protected void |
_sendEmail(java.lang.String smtp,
java.lang.String from,
java.lang.String subject,
java.lang.String body,
boolean html,
java.lang.String[] recips,
java.lang.String username,
java.lang.String password,
java.lang.String priority,
java.lang.String[] attachNamesArg,
byte[][] attachBytesArg,
int timeout)
Sends an email with or without authorization and attachments, depending an what arguments are
null.
|
static java.lang.String |
getExternalIpAddress() |
static void |
openURL(java.lang.String url) |
void |
openURL(java.lang.String url,
boolean useApplet) |
static void |
openURL(java.lang.String url,
java.awt.Component comp,
boolean useApplet) |
getHostName, getIpAddress, getRemoteServers, httpDelete, httpGet, httpPost, httpPost, httpPut, httpPut, pyDictToMap, sendAuthEmail, sendAuthEmail, sendAuthEmail, sendEmail
public ClientNetUtilities(FPMIApp app)
public static void openURL(java.lang.String url) throws java.io.IOException
java.io.IOException
public void openURL(java.lang.String url, boolean useApplet) throws java.io.IOException
java.io.IOException
public static void openURL(java.lang.String url, java.awt.Component comp, boolean useApplet) throws java.io.IOException
java.io.IOException
public static java.lang.String getExternalIpAddress()
protected void _sendEmail(java.lang.String smtp, java.lang.String from, java.lang.String subject, java.lang.String body, boolean html, java.lang.String[] recips, java.lang.String username, java.lang.String password, java.lang.String priority, java.lang.String[] attachNamesArg, byte[][] attachBytesArg, int timeout)
AbstractNetUtilities
_sendEmail
in class AbstractNetUtilities
smtp
- Address of the mail server, for example, mail.mycompany.comfrom
- An email address to use as the email's from address. Also the return address.subject
- The subject of the email.body
- The body of the email.html
- A boolean (0/1) indicating whether or not the body is HTML formatted.recips
- A python sequence of recipient email addresses.protected void _sendEmail(java.lang.String smtpSettingsName, java.lang.String from, java.lang.String subject, java.lang.String body, boolean html, java.lang.String[] recipients, java.lang.String[] ccRecipients, java.lang.String[] bccRecipients, java.lang.String[] attachNamesArg, byte[][] attachBytesArg, int timeout, int retries, java.lang.String priority)
AbstractNetUtilities
_sendEmail
in class AbstractNetUtilities
smtpSettingsName
- Name of an existing smtpSettings record to usefrom
- An email address to use as the email's from address. Also the return address.subject
- The subject of the email.body
- The body of the email.html
- A boolean (0/1) indicating whether or not the body is HTML formatted.recipients
- A python sequence of recipient email addresses.public java.util.List<java.lang.String> _getRemoteServers(java.lang.Boolean getRunningOnly) throws java.lang.Exception
AbstractNetUtilities
_getRemoteServers
in class AbstractNetUtilities
getRunningOnly
- set to true to indicate that only currently reachable servers should be returnedjava.lang.Exception