Package io.undertow.servlet.spec
Class WebConnectionImpl
- java.lang.Object
-
- io.undertow.servlet.spec.WebConnectionImpl
-
- All Implemented Interfaces:
WebConnection,AutoCloseable
public class WebConnectionImpl extends Object implements WebConnection
- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description WebConnectionImpl(org.xnio.StreamConnection channel, ByteBufferPool bufferPool, Executor ioExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ServletInputStreamgetInputStream()Returns an input stream for this web connection.ServletOutputStreamgetOutputStream()Returns an output stream for this web connection.
-
-
-
Constructor Detail
-
WebConnectionImpl
public WebConnectionImpl(org.xnio.StreamConnection channel, ByteBufferPool bufferPool, Executor ioExecutor)
-
-
Method Detail
-
getInputStream
public ServletInputStream getInputStream() throws IOException
Description copied from interface:WebConnectionReturns an input stream for this web connection.- Specified by:
getInputStreamin interfaceWebConnection- Returns:
- a ServletInputStream for reading binary data
- Throws:
IOException- if an I/O error occurs
-
getOutputStream
public ServletOutputStream getOutputStream() throws IOException
Description copied from interface:WebConnectionReturns an output stream for this web connection.- Specified by:
getOutputStreamin interfaceWebConnection- 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
-
-