|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectphp.java.bridge.http.HttpServer
php.java.bridge.JavaBridgeRunner
public class 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();
}
}
PhpScriptContext
Field Summary |
---|
Fields inherited from class php.java.bridge.http.HttpServer |
---|
GET, POST, PUT |
Method Summary | |
---|---|
ISocketFactory |
bind(java.lang.String addr)
Create a server socket. |
static JavaBridgeRunner |
getInstance(java.lang.String serverPort)
Return a instance. |
static JavaBridgeRunner |
getRequiredInstance()
Return a instance. |
static JavaBridgeRunner |
getRequiredInstance(java.lang.String serverPort)
Return a instance. |
static JavaBridgeRunner |
getRequiredStandaloneInstance()
Return a standalone instance. |
boolean |
isStandalone()
Return true if this is a standalone server |
static void |
main(java.lang.String[] s)
For internal tests only. |
void |
waitFor()
Wait for the runner to finish |
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 |
Method Detail |
---|
public static JavaBridgeRunner getRequiredInstance(java.lang.String serverPort) throws java.io.IOException
java.io.IOException
public static JavaBridgeRunner getInstance(java.lang.String serverPort)
public static JavaBridgeRunner getRequiredInstance() throws java.io.IOException
java.io.IOException
public static JavaBridgeRunner getRequiredStandaloneInstance() throws java.io.IOException
java.io.IOException
public ISocketFactory bind(java.lang.String addr) throws java.io.IOException
bind
in class HttpServer
addr
- The host address, either INET:port or INET_LOCAL:port
java.io.IOException
public boolean isStandalone()
main(String[])
) , false otherwise.public void waitFor() throws java.lang.InterruptedException
java.lang.InterruptedException
public static void main(java.lang.String[] s) throws java.lang.InterruptedException, java.io.IOException
java.lang.InterruptedException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |