Top Fields Constructors Methods
io.undertow.servlet.spec

public Class WebConnectionImpl

extends Object
implements WebConnection
Class Inheritance
All Implemented Interfaces
jakarta.servlet.http.WebConnection, java.lang.AutoCloseable
Imports
java.io.IOException, java.util.concurrent.Executor, jakarta.servlet.ServletInputStream, .ServletOutputStream, jakarta.servlet.http.WebConnection, org.xnio.ChannelListener, .IoUtils, .StreamConnection, io.undertow.connector.ByteBufferPool

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final StreamConnection
private final UpgradeServletInputStream
private final Executor
private final UpgradeServletOutputStream

Constructor Summary

AccessConstructor and Description
public
WebConnectionImpl(final StreamConnection channel, ByteBufferPool bufferPool, Executor ioExecutor)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

public ServletInputStream
getInputStream()

Implements jakarta.servlet.http.WebConnection.getInputStream.

Returns an input stream for this web connection.

public ServletOutputStream
getOutputStream()

Implements jakarta.servlet.http.WebConnection.getOutputStream.

Returns an output stream for this web connection.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

channelback to summary
private final StreamConnection channel
inputStreamback to summary
private final UpgradeServletInputStream inputStream
ioExecutorback to summary
private final Executor ioExecutor
outputStreamback to summary
private final UpgradeServletOutputStream outputStream

Constructor Detail

WebConnectionImplback to summary
public WebConnectionImpl(final StreamConnection channel, ByteBufferPool bufferPool, Executor ioExecutor)

Method Detail

closeback to summary
public void close() throws Exception

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
Exceptions
Exception:
if this resource cannot be closed
getInputStreamback to summary
public ServletInputStream getInputStream() throws IOException

Implements jakarta.servlet.http.WebConnection.getInputStream.

Doc from jakarta.servlet.http.WebConnection.getInputStream.

Returns an input stream for this web connection.

Returns:ServletInputStream

a ServletInputStream for reading binary data

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs
getOutputStreamback to summary
public ServletOutputStream getOutputStream() throws IOException

Implements jakarta.servlet.http.WebConnection.getOutputStream.

Doc from jakarta.servlet.http.WebConnection.getOutputStream.

Returns an output stream for this web connection.

Returns:ServletOutputStream

a ServletOutputStream for writing binary data

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs