Package jakarta.servlet.http
Interface WebConnection
- All Superinterfaces:
AutoCloseable
The interface used by an
HttpUpgradeHandler
to interact with an upgraded HTTP connection.- Since:
- Servlet 3.1
-
Method Summary
Modifier and TypeMethodDescriptionProvides access to theServletInputStream
for reading data from the client.Provides access to theServletOutputStream
for writing data to the client.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
getInputStream
Provides access to theServletInputStream
for reading data from the client.- Returns:
- the input stream
- Throws:
IOException
- If an I/O occurs while obtaining the stream
-
getOutputStream
Provides access to theServletOutputStream
for writing data to the client.- Returns:
- the output stream
- Throws:
IOException
- If an I/O occurs while obtaining the stream
-