Package io.undertow.servlet.core
Class WebConnectionImpl
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelDuplexHandler
-
- io.netty.channel.CombinedChannelDuplexHandler<io.undertow.servlet.core.WebConnectionImpl.InboundHandler,io.undertow.servlet.core.WebConnectionImpl.OutboundHandler>
-
- io.undertow.servlet.core.WebConnectionImpl
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,io.netty.channel.ChannelOutboundHandler,jakarta.servlet.http.WebConnection,AutoCloseable
public class WebConnectionImpl extends io.netty.channel.CombinedChannelDuplexHandler<io.undertow.servlet.core.WebConnectionImpl.InboundHandler,io.undertow.servlet.core.WebConnectionImpl.OutboundHandler> implements jakarta.servlet.http.WebConnection- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description WebConnectionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()jakarta.servlet.ServletInputStreamgetInputStream()jakarta.servlet.ServletOutputStreamgetOutputStream()voidhandlerAdded(io.netty.channel.ChannelHandlerContext ctx)-
Methods inherited from class io.netty.channel.CombinedChannelDuplexHandler
bind, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerRemoved, inboundHandler, init, outboundHandler, read, removeInboundHandler, removeOutboundHandler, userEventTriggered, write
-
-
-
-
Method Detail
-
handlerAdded
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
handlerAddedin interfaceio.netty.channel.ChannelHandler- Overrides:
handlerAddedin classio.netty.channel.CombinedChannelDuplexHandler<io.undertow.servlet.core.WebConnectionImpl.InboundHandler,io.undertow.servlet.core.WebConnectionImpl.OutboundHandler>- Throws:
Exception
-
getInputStream
public jakarta.servlet.ServletInputStream getInputStream() throws IOException- Specified by:
getInputStreamin interfacejakarta.servlet.http.WebConnection- Throws:
IOException
-
getOutputStream
public jakarta.servlet.ServletOutputStream getOutputStream() throws IOException- Specified by:
getOutputStreamin interfacejakarta.servlet.http.WebConnection- Throws:
IOException
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-