Package org.glassfish.grizzly.servlet
Class WebConnectionImpl
- java.lang.Object
-
- org.glassfish.grizzly.servlet.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(HttpServletRequestImpl request, jakarta.servlet.ServletInputStream inputStream, jakarta.servlet.ServletOutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()jakarta.servlet.ServletInputStreamgetInputStream()Returns an input stream for this web connection.jakarta.servlet.ServletOutputStreamgetOutputStream()Returns an output stream for this web connection.
-
-
-
Constructor Detail
-
WebConnectionImpl
public WebConnectionImpl(HttpServletRequestImpl request, jakarta.servlet.ServletInputStream inputStream, jakarta.servlet.ServletOutputStream outputStream)
-
-
Method Detail
-
getInputStream
public jakarta.servlet.ServletInputStream getInputStream() throws IOExceptionReturns an input stream for this web connection.- Specified by:
getInputStreamin 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 IOExceptionReturns an output stream for this web connection.- Specified by:
getOutputStreamin 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:
closein interfaceAutoCloseable- Throws:
Exception
-
-