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.
|
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 BlockingHttpExchangeIOExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.