|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.aliyun.mns.sample.HttpEndpoint
public class HttpEndpoint
HTTP/1.1 file server,处理发送到/notifications的请求
| 嵌套类摘要 | |
|---|---|
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 |
| 字段摘要 | |
|---|---|
static org.apache.log4j.Logger |
logger
|
static Thread |
t
|
| 构造方法摘要 | |
|---|---|
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 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
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 port
public void start()
throws Exception
Exceptionpublic void stop()
public static void main(String[] args)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||