Class WebConnectionImpl

java.lang.Object
org.glassfish.grizzly.servlet.WebConnectionImpl
All Implemented Interfaces:
AutoCloseable, javax.servlet.http.WebConnection

public class WebConnectionImpl extends Object implements javax.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 Details

    • WebConnectionImpl

      public WebConnectionImpl(HttpServletRequestImpl request, javax.servlet.ServletInputStream inputStream, javax.servlet.ServletOutputStream outputStream)
  • Method Details

    • getInputStream

      public javax.servlet.ServletInputStream getInputStream() throws IOException
      Returns an input stream for this web connection.
      Specified by:
      getInputStream in interface javax.servlet.http.WebConnection
      Returns:
      a ServletInputStream for reading binary data
      Throws:
      IOException - if an I/O error occurs
    • getOutputStream

      public javax.servlet.ServletOutputStream getOutputStream() throws IOException
      Returns an output stream for this web connection.
      Specified by:
      getOutputStream in interface javax.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 interface AutoCloseable
      Throws:
      Exception