public class HttpEndpoint extends Object
| 限定符和类型 | 类和说明 |
|---|---|
class |
HttpEndpoint.NSHandler
core class for processing /notifications request
|
class |
HttpEndpoint.RequestListenerThread
http listen work thread
|
class |
HttpEndpoint.SimplifiedNSHandler |
class |
HttpEndpoint.WorkerThread
http work thread, it will dispatch /notifications to NSHandler
|
| 构造器和说明 |
|---|
HttpEndpoint()
构造函数,构造HttpEndpoint对象,默认80端口
|
HttpEndpoint(int port)
构造函数,用指定端口构造HttpEndpoint对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
GenEndpointLocal()
静态方法,使用本机地址用于生成一个endpoint地址
|
static String |
GenEndpointLocal(int port)
静态方法,使用本机地址用于生成一个endpoint地址
|
static void |
main(String[] args)
简单的使用, main函数demo
|
void |
start()
start http server
|
void |
stop()
stop http endpoint
|
public static org.apache.log4j.Logger logger
public static Thread t
public HttpEndpoint(int port)
port, - http server portpublic HttpEndpoint()
public static String GenEndpointLocal()
public static String GenEndpointLocal(int port)
port, - http server portpublic void stop()
public static void main(String[] args)
Copyright © 2016. All Rights Reserved.