php.java.script
Class JavaBridgeScriptRunner

java.lang.Object
  extended by php.java.bridge.http.HttpServer
      extended by php.java.bridge.JavaBridgeRunner
          extended by php.java.script.JavaBridgeScriptRunner
All Implemented Interfaces:
java.lang.Runnable

public class JavaBridgeScriptRunner
extends JavaBridgeRunner

This is the main entry point for the PHP/Java Bridge library. Example:
public MyClass {
  public static void main(String s[]) {
     JavaBridgeRunner runner = JavaBridgeRunner.getInstance();
     // connect to port 9267 and send protocol requests ...
    runner.destroy();
  }
}

Author:
jostb
See Also:
PhpScriptContext

Field Summary
 
Fields inherited from class php.java.bridge.http.HttpServer
GET, POST, PUT
 
Constructor Summary
JavaBridgeScriptRunner(java.lang.String serverPort)
           
JavaBridgeScriptRunner(java.lang.String serverPort, boolean isSecure)
           
 
Method Summary
static JavaBridgeRunner getInstance(java.lang.String serverPort)
          Return a instance.
static JavaBridgeRunner getInstance(java.lang.String serverPort, boolean isSecure)
          Return a instance.
static JavaBridgeRunner getRequiredInstance()
          Return a instance.
static JavaBridgeRunner getRequiredInstance(java.lang.String serverPort)
          Return a instance.
static JavaBridgeRunner getRequiredInstance(java.lang.String serverPort, boolean isSecure)
          Return a instance.
 
Methods inherited from class php.java.bridge.JavaBridgeRunner
bind, bindSecure, destroyRunner, getContextServer, waitFor
 
Methods inherited from class php.java.bridge.http.HttpServer
destroy, getSocket, run
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaBridgeScriptRunner

public JavaBridgeScriptRunner(java.lang.String serverPort,
                              boolean isSecure)
                       throws java.io.IOException
Throws:
java.io.IOException

JavaBridgeScriptRunner

public JavaBridgeScriptRunner(java.lang.String serverPort)
                       throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getRequiredInstance

public static JavaBridgeRunner getRequiredInstance(java.lang.String serverPort,
                                                   boolean isSecure)
                                            throws java.io.IOException
Return a instance.

Parameters:
serverPort - The server port name
isSecure - use https instead of http
Returns:
a standalone runner
Throws:
java.io.IOException

getInstance

public static JavaBridgeRunner getInstance(java.lang.String serverPort,
                                           boolean isSecure)
Return a instance.

Parameters:
serverPort - The server port name
isSecure - use https instead of http
Returns:
a standalone runner

getRequiredInstance

public static JavaBridgeRunner getRequiredInstance(java.lang.String serverPort)
                                            throws java.io.IOException
Return a instance.

Parameters:
serverPort - The server port name
Returns:
a standalone runner
Throws:
java.io.IOException

getInstance

public static JavaBridgeRunner getInstance(java.lang.String serverPort)
Return a instance.

Parameters:
serverPort - The server port name
Returns:
a standalone runner

getRequiredInstance

public static JavaBridgeRunner getRequiredInstance()
                                            throws java.io.IOException
Return a instance.

Returns:
a standalone runner
Throws:
java.io.IOException