Package io.undertow.servlet.spec
Class WebConnectionImpl
java.lang.Object
io.undertow.servlet.spec.WebConnectionImpl
- All Implemented Interfaces:
WebConnection,AutoCloseable
- Author:
- Stuart Douglas
-
Constructor Summary
ConstructorsConstructorDescriptionWebConnectionImpl(org.xnio.StreamConnection channel, ByteBufferPool bufferPool, Executor ioExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns an input stream for this web connection.Returns an output stream for this web connection.
-
Constructor Details
-
WebConnectionImpl
public WebConnectionImpl(org.xnio.StreamConnection channel, ByteBufferPool bufferPool, Executor ioExecutor)
-
-
Method Details
-
getInputStream
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
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
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-