Package javax.servlet.http
Interface WebConnection
- 
- All Superinterfaces:
- java.lang.AutoCloseable
 
 public interface WebConnection extends java.lang.AutoCloseableThe interface used by anHttpUpgradeHandlerto interact with an upgraded HTTP connection.- Since:
- Servlet 3.1
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ServletInputStreamgetInputStream()Provides access to theServletInputStreamfor reading data from the client.ServletOutputStreamgetOutputStream()Provides access to theServletOutputStreamfor writing data to the client.
 
- 
- 
- 
Method Detail- 
getInputStreamServletInputStream getInputStream() throws java.io.IOException Provides access to theServletInputStreamfor reading data from the client.- Returns:
- the input stream
- Throws:
- java.io.IOException- If an I/O occurs while obtaining the stream
 
 - 
getOutputStreamServletOutputStream getOutputStream() throws java.io.IOException Provides access to theServletOutputStreamfor writing data to the client.- Returns:
- the output stream
- Throws:
- java.io.IOException- If an I/O occurs while obtaining the stream
 
 
- 
 
-