public class SunServerExchangeBase extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected com.sun.net.httpserver.HttpExchange |
httpExchange |
Constructor and Description |
---|
SunServerExchangeBase(com.sun.net.httpserver.HttpExchange httpExchange)
构造
|
Modifier and Type | Method and Description |
---|---|
void |
close()
调用
HttpExchange.close() ,关闭请求流和响应流 |
com.sun.net.httpserver.HttpExchange |
getExchange()
获取
HttpExchange 对象 |
com.sun.net.httpserver.HttpContext |
getHttpContext()
获取
HttpContext |
public SunServerExchangeBase(com.sun.net.httpserver.HttpExchange httpExchange)
httpExchange
- HttpExchange
public com.sun.net.httpserver.HttpExchange getExchange()
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 © 2025. All rights reserved.