public class ServletBlockingHttpExchange extends Object implements BlockingHttpExchange
| Constructor and Description |
|---|
ServletBlockingHttpExchange(HttpServerExchange exchange) |
| Modifier and Type | Method and Description |
|---|---|
void | close() Closes both the input and output streams |
InputStream | getInputStream() Returns the input stream that is in use for this exchange. |
OutputStream | getOutputStream() Returns the output stream that is in use for this exchange. |
Receiver | getReceiver() returns a receiver based on the provided input stream. |
Sender | getSender() Returns a sender based on the provided output stream |
public ServletBlockingHttpExchange(HttpServerExchange exchange)
public InputStream getInputStream()
BlockingHttpExchangegetInputStream in interface BlockingHttpExchangepublic OutputStream getOutputStream()
BlockingHttpExchangegetOutputStream in interface BlockingHttpExchangepublic Sender getSender()
BlockingHttpExchangegetSender in interface BlockingHttpExchangepublic void close()
throws IOException BlockingHttpExchangeclose in interface BlockingHttpExchangeclose in interface Closeableclose in interface AutoCloseableIOExceptionpublic Receiver getReceiver()
BlockingHttpExchangegetReceiver in interface BlockingHttpExchangeCopyright © 2020 JBoss by Red Hat. All rights reserved.