Top Description Methods
io.undertow.server

public Interface BlockingHttpExchange

extends Closeable
Known Direct Implementers
io.undertow.server.HttpServerExchange.DefaultBlockingHttpExchange
Imports
java.io.Closeable, .IOException, .InputStream, .OutputStream, io.undertow.io.Receiver, .Sender

An interface that provides the input and output streams for blocking HTTP requests.
Author
Stuart Douglas

Method Summary

Modifier and TypeMethod and Description
public void
close()

Redeclares java.io.Closeable.close.

Closes both the input and output streams

public InputStream

Returns:

The input stream
getInputStream
()

Returns the input stream that is in use for this exchange.

public OutputStream

Returns:

The output stream
getOutputStream
()

Returns the output stream that is in use for this exchange.

public Receiver

Returns:

The receiver
getReceiver
()

returns a receiver based on the provided input stream.

public Sender

Returns:

A sender that uses the output stream
getSender
()

Returns a sender based on the provided output stream

Method Detail

closeback to summary
public void close() throws IOException

Redeclares java.io.Closeable.close.

Closes both the input and output streams

Exceptions
IOException:

Doc from java.io.Closeable.close.

if an I/O error occurs

getInputStreamback to summary
public InputStream getInputStream()

Returns the input stream that is in use for this exchange.

Returns:InputStream

The input stream

getOutputStreamback to summary
public 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:OutputStream

The output stream

getReceiverback to summary
public Receiver getReceiver()

returns a receiver based on the provided input stream.

Returns:Receiver

The receiver

getSenderback to summary
public Sender getSender()

Returns a sender based on the provided output stream

Returns:Sender

A sender that uses the output stream