Package org.glassfish.grizzly.servlet
Class WebConnectionImpl
java.lang.Object
org.glassfish.grizzly.servlet.WebConnectionImpl
- All Implemented Interfaces:
AutoCloseable,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 Summary
ConstructorsConstructorDescriptionWebConnectionImpl(HttpServletRequestImpl request, javax.servlet.ServletInputStream inputStream, javax.servlet.ServletOutputStream outputStream) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()javax.servlet.ServletInputStreamReturns an input stream for this web connection.javax.servlet.ServletOutputStreamReturns an output stream for this web connection.
-
Constructor Details
-
WebConnectionImpl
public WebConnectionImpl(HttpServletRequestImpl request, javax.servlet.ServletInputStream inputStream, javax.servlet.ServletOutputStream outputStream)
-
-
Method Details
-
getInputStream
Returns an input stream for this web connection.- Specified by:
getInputStreamin interfacejavax.servlet.http.WebConnection- Returns:
- a ServletInputStream for reading binary data
- Throws:
IOException- if an I/O error occurs
-
getOutputStream
Returns an output stream for this web connection.- Specified by:
getOutputStreamin interfacejavax.servlet.http.WebConnection- Returns:
- a ServletOutputStream for writing binary data
- Throws:
IOException- if an I/O error occurs
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-