Package io.undertow.httpcore
Interface BlockingHttpExchange
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
DefaultBlockingHttpExchange
An interface that provides the input and output streams for blocking HTTP requests.
- Author:
- Stuart Douglas
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes both the input and output streamsReturns the input stream that is in use for this exchange.Returns the output stream that is in use for this exchange.
-
Method Details
-
getInputStream
InputStream getInputStream()Returns the input stream that is in use for this exchange.- Returns:
- The input stream
-
getOutputStream
OutputStream getOutputStream()Returns the output stream that is in use for this exchange.In some circumstances this may not be available, such as if a writer is being used for a servlet response
- Returns:
- The output stream
-
close
Closes both the input and output streams- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-