public class HttpServerBase extends Object implements Closeable
Constructor and Description |
---|
HttpServerBase(com.sun.net.httpserver.HttpExchange httpExchange)
构造
|
Modifier and Type | Method and Description |
---|---|
void |
close()
调用
HttpExchange.close() ,关闭请求流和响应流 |
com.sun.net.httpserver.HttpContext |
getHttpContext()
获取
HttpContext |
com.sun.net.httpserver.HttpExchange |
getHttpExchange()
获取
HttpExchange 对象 |
public HttpServerBase(com.sun.net.httpserver.HttpExchange httpExchange)
httpExchange
- HttpExchange
public com.sun.net.httpserver.HttpExchange getHttpExchange()
HttpExchange
对象HttpExchange
对象public com.sun.net.httpserver.HttpContext getHttpContext()
HttpContext
HttpContext
public void close()
HttpExchange.close()
,关闭请求流和响应流close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2024. All rights reserved.