public class DefaultBlockingHttpExchange extends Object implements BlockingHttpExchange
| Constructor and Description |
|---|
DefaultBlockingHttpExchange(HttpExchange 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.
|
public DefaultBlockingHttpExchange(HttpExchange exchange)
public InputStream getInputStream()
BlockingHttpExchangegetInputStream in interface BlockingHttpExchangepublic OutputStream getOutputStream()
BlockingHttpExchangeIn some circumstances this may not be available, such as if a writer is being used for a servlet response
getOutputStream in interface BlockingHttpExchangepublic void close()
throws IOException
BlockingHttpExchangeclose in interface BlockingHttpExchangeclose in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.