public final class Environment extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getFasp2AscpPath()
Gets the path to the fasp2 ascp binary.
|
static String |
getFaspVersion()
Find the version of ascp being used by Fasp Manager.
|
static License |
getLicense()
Retrieve the underlying license being used by ascp.
|
protected static Reader |
getLicenseReader() |
static int |
getManagementPort()
Get the port at which fasp Manager is listening for connections from ascp processes.
|
static String |
getPortFilePath()
Gets the path to the file containing the fasp management port.
|
static String |
getRawLicense()
Retrieve the underlying license being used by ascp and returns it as is.
|
static boolean |
isUnicodeSupportOn()
Deprecated.
3.2 no longer does anything, unicode always supported
|
static boolean |
isWindows() |
static void |
setFasp2ScpPath(String fasp2ScpPath)
Sets the path to the fasp2 ascp binary.
|
static void |
setManagementPort(int port)
Set the management port to a specific value.
|
static void |
setUnicodeSupportOn(boolean unicodeSupportOn)
Deprecated.
3.2 no longer has any affect, unicode always supported
|
public static void setManagementPort(int port)
port
- (Default: 0 to automatically pick a random port)public static int getManagementPort()
public static String getFasp2AscpPath()
public static String getPortFilePath()
@Deprecated public static boolean isUnicodeSupportOn()
public static void setFasp2ScpPath(String fasp2ScpPath)
fasp2ScpPath
- path to the fasp2 ascp binary@Deprecated public static void setUnicodeSupportOn(boolean unicodeSupportOn)
unicodeSupportOn
- true to turn on unicode supportpublic static String getFaspVersion() throws InitializationException
InitializationException
- thrown if ascp is not foundprotected static Reader getLicenseReader() throws IOException
IOException
public static String getRawLicense()
public static License getLicense()
public static boolean isWindows()
Copyright © 2017 Aspera Inc.. All rights reserved.