|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object php.java.bridge.http.HttpServer php.java.bridge.JavaBridgeRunner php.java.script.JavaBridgeScriptRunner
public class JavaBridgeScriptRunner
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();
}
}
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 |
---|
public JavaBridgeScriptRunner(java.lang.String serverPort, boolean isSecure) throws java.io.IOException
java.io.IOException
public JavaBridgeScriptRunner(java.lang.String serverPort) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public static JavaBridgeRunner getRequiredInstance(java.lang.String serverPort, boolean isSecure) throws java.io.IOException
serverPort
- The server port nameisSecure
- use https instead of http
java.io.IOException
public static JavaBridgeRunner getInstance(java.lang.String serverPort, boolean isSecure)
serverPort
- The server port nameisSecure
- use https instead of http
public static JavaBridgeRunner getRequiredInstance(java.lang.String serverPort) throws java.io.IOException
serverPort
- The server port name
java.io.IOException
public static JavaBridgeRunner getInstance(java.lang.String serverPort)
serverPort
- The server port name
public static JavaBridgeRunner getRequiredInstance() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |