|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphp.java.bridge.http.HttpServer
public abstract class HttpServer
This class can be used to create a simple HTTP server. It is used
when running local scripts like e.eval(new
StringReader('<?php phpinfo(); ?>'));. For remote
scripts use a HttpProxy and URLReader instead.
HttpRequest,
HttpResponse,
Continuation,
URLReader,
Continuation| Field Summary | |
|---|---|
static java.lang.String |
GET
Request method PUT |
static java.lang.String |
POST
Request method POST |
static java.lang.String |
PUT
Request method GET |
| Method Summary | |
|---|---|
abstract ISocketFactory |
bind(java.lang.String addr)
Create a server socket. |
abstract ISocketFactory |
bindSecure(java.lang.String addr)
Create a server socket. |
void |
destroy()
Stop the HTTP server. |
ISocketFactory |
getSocket()
Returns the server socket. |
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PUT
public static final java.lang.String GET
public static final java.lang.String POST
| Method Detail |
|---|
public abstract ISocketFactory bind(java.lang.String addr)
throws java.io.IOException
addr - The host address, either INET:port or INET_LOCAL:port
java.io.IOException
public abstract ISocketFactory bindSecure(java.lang.String addr)
throws java.io.IOException
addr - The host address, either INET:port or INET_LOCAL:port
java.io.IOExceptionpublic void run()
run in interface java.lang.Runnablepublic void destroy()
public ISocketFactory getSocket()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||