Top Description Methods
jakarta.servlet.http

public Interface WebConnection

extends AutoCloseable
Known Direct Implementers
org.apache.coyote.http11.upgrade.UpgradeProcessorBase
Imports
java.io.IOException, jakarta.servlet.ServletInputStream, .ServletOutputStream

The interface used by an HttpUpgradeHandler to interact with an upgraded HTTP connection.
Since
Servlet 3.1

Method Summary

Modifier and TypeMethod and Description
public ServletInputStream

Returns:

the input stream
getInputStream
()

Provides access to the ServletInputStream for reading data from the client.

public ServletOutputStream

Returns:

the output stream
getOutputStream
()

Provides access to the ServletOutputStream for writing data to the client.

Inherited from java.lang.AutoCloseable:
close

Method Detail

getInputStreamback to summary
public ServletInputStream getInputStream() throws IOException

Provides access to the ServletInputStream for reading data from the client.

Returns:ServletInputStream

the input stream

Exceptions
IOException:
If an I/O occurs while obtaining the stream
getOutputStreamback to summary
public ServletOutputStream getOutputStream() throws IOException

Provides access to the ServletOutputStream for writing data to the client.

Returns:ServletOutputStream

the output stream

Exceptions
IOException:
If an I/O occurs while obtaining the stream