Class 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 Detail

      • WebConnectionImpl

        public WebConnectionImpl​(jakarta.servlet.ServletInputStream inputStream,
                                 jakarta.servlet.ServletOutputStream outputStream)
    • Method Detail

      • getInputStream

        public jakarta.servlet.ServletInputStream getInputStream()
                                                          throws IOException
        Returns an input stream for this web connection.
        Specified by:
        getInputStream in interface jakarta.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 interface jakarta.servlet.http.WebConnection
        Returns:
        a ServletOutputStream for writing binary data
        Throws:
        IOException - if an I/O error occurs
      • setRequest

        public void setRequest​(Request req)
      • setResponse

        public void setResponse​(Response res)