Package org.apache.catalina.connector
Class WebConnectionImpl
- java.lang.Object
-
- org.apache.catalina.connector.WebConnectionImpl
-
- All Implemented Interfaces:
jakarta.servlet.http.WebConnection
,AutoCloseable
public class WebConnectionImpl extends Object implements jakarta.servlet.http.WebConnection
Implementation of WebConnection for Servlet 3.1- Version:
- $Revision: 1.23 $ $Date: 2007/07/09 20:46:45 $
- Author:
- Amy Roh, Shing Wai Chan
-
-
Constructor Summary
Constructors Constructor Description WebConnectionImpl(jakarta.servlet.ServletInputStream inputStream, jakarta.servlet.ServletOutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
jakarta.servlet.ServletInputStream
getInputStream()
Returns an input stream for this web connection.jakarta.servlet.ServletOutputStream
getOutputStream()
Returns an output stream for this web connection.void
setRequest(Request req)
void
setResponse(Response res)
-
-
-
Method Detail
-
getInputStream
public jakarta.servlet.ServletInputStream getInputStream() throws IOException
Returns an input stream for this web connection.- Specified by:
getInputStream
in interfacejakarta.servlet.http.WebConnection
- Returns:
- a ServletInputStream for reading binary data
- Throws:
IOException
- if an I/O error occurs
-
getOutputStream
public jakarta.servlet.ServletOutputStream getOutputStream() throws IOException
Returns an output stream for this web connection.- Specified by:
getOutputStream
in interfacejakarta.servlet.http.WebConnection
- Returns:
- a ServletOutputStream for writing binary data
- Throws:
IOException
- if an I/O error occurs
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
setRequest
public void setRequest(Request req)
-
setResponse
public void setResponse(Response res)
-
-