Package io.undertow.servlet.core
Class ServletBlockingHttpExchange
java.lang.Object
io.undertow.servlet.core.ServletBlockingHttpExchange
- All Implemented Interfaces:
BlockingHttpExchange,Closeable,AutoCloseable
- Author:
- Stuart Douglas
-
Constructor Summary
Constructors -
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.returns a receiver based on the provided input stream.Returns a sender based on the provided output stream
-
Constructor Details
-
ServletBlockingHttpExchange
-
-
Method Details
-
getInputStream
Description copied from interface:BlockingHttpExchangeReturns the input stream that is in use for this exchange.- Specified by:
getInputStreamin interfaceBlockingHttpExchange- Returns:
- The input stream
-
getOutputStream
Description copied from interface:BlockingHttpExchangeReturns 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- Specified by:
getOutputStreamin interfaceBlockingHttpExchange- Returns:
- The output stream
-
getSender
Description copied from interface:BlockingHttpExchangeReturns a sender based on the provided output stream- Specified by:
getSenderin interfaceBlockingHttpExchange- Returns:
- A sender that uses the output stream
-
close
Description copied from interface:BlockingHttpExchangeCloses both the input and output streams- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceBlockingHttpExchange- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getReceiver
Description copied from interface:BlockingHttpExchangereturns a receiver based on the provided input stream.- Specified by:
getReceiverin interfaceBlockingHttpExchange- Returns:
- The receiver
-