Package jakarta.servlet.http
Interface WebConnection
-
- All Superinterfaces:
java.lang.AutoCloseable
public interface WebConnection extends java.lang.AutoCloseable
The interface used by anHttpUpgradeHandler
to interact with an upgraded HTTP connection.- Since:
- Servlet 3.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServletInputStream
getInputStream()
Provides access to theServletInputStream
for reading data from the client.ServletOutputStream
getOutputStream()
Provides access to theServletOutputStream
for writing data to the client.
-
-
-
Method Detail
-
getInputStream
ServletInputStream getInputStream() throws java.io.IOException
Provides access to theServletInputStream
for reading data from the client.- Returns:
- the input stream
- Throws:
java.io.IOException
- If an I/O occurs while obtaining the stream
-
getOutputStream
ServletOutputStream getOutputStream() throws java.io.IOException
Provides access to theServletOutputStream
for writing data to the client.- Returns:
- the output stream
- Throws:
java.io.IOException
- If an I/O occurs while obtaining the stream
-
-