public class Proxy
extends java.lang.Object
Usage: String sahiBasePath = "D:\\path\\to\\sahi_dir"; Sting userDataDirectory = "D:\\path\\to\\userdata_dir"; // userdata_dir is in sahiBasePath/userdata by default net.sf.sahi.config.Configuration.initJava(sahiBasePath, userDataDirectory); proxy = new Proxy(); proxy.start(true); // true represents asynchronous. The proxy server will listen on a separate thread. // browser actions proxy.stop();
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getId() |
static boolean |
hasRunningIntance() |
boolean |
isLicenseVerified() |
boolean |
isRunning()
Indicates whether this proxy server can receive connections from clients
|
static boolean |
isRunningFromProxy() |
static void |
main(java.lang.String[] args) |
static void |
registerShutdownObserver(ShutdownObserver observer) |
static void |
setLicenseServerProperties(java.lang.String host,
java.lang.String port) |
void |
shutDownCallBack() |
void |
start(boolean asynch)
Starts the proxy.
|
void |
start(boolean asynch,
boolean shouldThrowException) |
void |
startSahiSAPExe() |
void |
startSahiWinExe() |
void |
stop() |
void |
stop(boolean removeInstance)
Stops the proxy.
|
static void |
stopAllProxy() |
static void |
stopCurrentIntance() |
static void |
stopCurrentIntanceWithOutExit() |
void |
stopProxy() |
void |
stopSahiSAPExe() |
void |
stopSahiWinExe() |
public static boolean isRunningFromProxy()
public static java.lang.String getId()
public static final void main(java.lang.String[] args)
public static final void stopCurrentIntance()
public static void stopCurrentIntanceWithOutExit()
public final void stop()
public final void stop(boolean removeInstance)
public static void stopAllProxy()
public void stopProxy()
public void start(boolean asynch)
asynch
- If true, starts Sahi's proxy in a separate thread.public void start(boolean asynch, boolean shouldThrowException)
public boolean isRunning()
public static void setLicenseServerProperties(java.lang.String host, java.lang.String port)
public static void registerShutdownObserver(ShutdownObserver observer)
public void shutDownCallBack()
public void startSahiWinExe()
public void stopSahiWinExe()
public void startSahiSAPExe()
public void stopSahiSAPExe()
public static boolean hasRunningIntance()
public final boolean isLicenseVerified()