Top Fields Constructors Methods
io.undertow.servlet.core

public Class ServletBlockingHttpExchange

extends Object
implements BlockingHttpExchange
Class Inheritance
All Implemented Interfaces
io.undertow.server.BlockingHttpExchange, java.io.Closeable, java.lang.AutoCloseable
Imports
java.io.IOException, .InputStream, .OutputStream, jakarta.servlet.ServletRequest, .ServletResponse, io.undertow.io.BlockingReceiverImpl, .BlockingSenderImpl, .Receiver, .Sender, io.undertow.server.BlockingHttpExchange, .HttpServerExchange, io.undertow.servlet.handlers.ServletRequestContext, io.undertow.servlet.spec.HttpServletRequestImpl, .HttpServletResponseImpl

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final HttpServerExchange

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements io.undertow.server.BlockingHttpExchange.close.

Closes both the input and output streams

public InputStream
getInputStream()

Implements io.undertow.server.BlockingHttpExchange.getInputStream.

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

public OutputStream
getOutputStream()

Implements io.undertow.server.BlockingHttpExchange.getOutputStream.

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

public Receiver
getReceiver()

Implements io.undertow.server.BlockingHttpExchange.getReceiver.

returns a receiver based on the provided input stream.

public Sender
getSender()

Implements io.undertow.server.BlockingHttpExchange.getSender.

Returns a sender based on the provided output stream

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

exchangeback to summary
private final HttpServerExchange exchange

Constructor Detail

ServletBlockingHttpExchangeback to summary
public ServletBlockingHttpExchange(final HttpServerExchange exchange)

Method Detail

closeback to summary
public void close() throws IOException

Implements io.undertow.server.BlockingHttpExchange.close.

Doc from io.undertow.server.BlockingHttpExchange.close.

Closes both the input and output streams

Annotations
@Override
Exceptions
IOException:

Doc from java.io.Closeable.close.

if an I/O error occurs

getInputStreamback to summary
public InputStream getInputStream()

Implements io.undertow.server.BlockingHttpExchange.getInputStream.

Doc from io.undertow.server.BlockingHttpExchange.getInputStream.

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

Returns:InputStream

The input stream

Annotations
@Override
getOutputStreamback to summary
public OutputStream getOutputStream()

Implements io.undertow.server.BlockingHttpExchange.getOutputStream.

Doc from io.undertow.server.BlockingHttpExchange.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

Annotations
@Override
getReceiverback to summary
public Receiver getReceiver()

Implements io.undertow.server.BlockingHttpExchange.getReceiver.

Doc from io.undertow.server.BlockingHttpExchange.getReceiver.

returns a receiver based on the provided input stream.

Returns:Receiver

The receiver

Annotations
@Override
getSenderback to summary
public Sender getSender()

Implements io.undertow.server.BlockingHttpExchange.getSender.

Doc from io.undertow.server.BlockingHttpExchange.getSender.

Returns a sender based on the provided output stream

Returns:Sender

A sender that uses the output stream

Annotations
@Override