Top Description Methods
jakarta.servlet.http

public Interface WebConnection

extends AutoCloseable
Imports
jakarta.servlet.ServletInputStream, .ServletOutputStream, java.io.IOException

This interface encapsulates the connection for an upgrade request. It allows the protocol handler to send service requests and status queries to the container.
Since
Servlet 3.1

Method Summary

Modifier and TypeMethod and Description
public ServletInputStream

Returns:

a ServletInputStream for reading binary data
getInputStream
()

Returns an input stream for this web connection.

public ServletOutputStream

Returns:

a ServletOutputStream for writing binary data
getOutputStream
()

Returns an output stream for this web connection.

Inherited from java.lang.AutoCloseable:
close

Method Detail

getInputStreamback to summary
public ServletInputStream getInputStream() throws IOException

Returns an input stream for this web connection.

Returns:ServletInputStream

a ServletInputStream for reading binary data

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

Returns an output stream for this web connection.

Returns:ServletOutputStream

a ServletOutputStream for writing binary data

Exceptions
IOException:
if an I/O error occurs