Package io.undertow.server
Interface BlockingHttpExchange
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
public interface BlockingHttpExchange extends java.io.CloseableAn interface that provides the input and output streams for blocking HTTP requests.- Author:
- Stuart Douglas
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes both the input and output streamsjava.io.InputStreamgetInputStream()Returns the input stream that is in use for this exchange.java.io.OutputStreamgetOutputStream()Returns the output stream that is in use for this exchange.ReceivergetReceiver()returns a receiver based on the provided input stream.SendergetSender()Returns a sender based on the provided output stream
-
-
-
Method Detail
-
getInputStream
java.io.InputStream getInputStream()
Returns the input stream that is in use for this exchange.- Returns:
- The input stream
-
getOutputStream
java.io.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
-
getSender
Sender getSender()
Returns a sender based on the provided output stream- Returns:
- A sender that uses the output stream
-
close
void close() throws java.io.IOExceptionCloses both the input and output streams- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
getReceiver
Receiver getReceiver()
returns a receiver based on the provided input stream.- Returns:
- The receiver
-
-