Class HttpContentUnwrap
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.handler.codec.MessageToMessageDecoder<io.netty.handler.codec.http.HttpObject>
-
- com.linkedin.alpini.netty4.handlers.HttpContentUnwrap
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class HttpContentUnwrap extends io.netty.handler.codec.MessageToMessageDecoder<io.netty.handler.codec.http.HttpObject>Unwraps the content of messages which have multipart bodies as bare ByteBuf messages which can then be further processed byHttpContentMultiPartDecode.
-
-
Constructor Summary
Constructors Constructor Description HttpContentUnwrap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptBoundary(java.lang.String boundary)booleanacceptInboundMessage(java.lang.Object msg)protected voiddecode(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpObject obj, java.util.List<java.lang.Object> out)-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Method Detail
-
acceptInboundMessage
public boolean acceptInboundMessage(java.lang.Object msg)
- Overrides:
acceptInboundMessagein classio.netty.handler.codec.MessageToMessageDecoder<io.netty.handler.codec.http.HttpObject>
-
acceptBoundary
public boolean acceptBoundary(java.lang.String boundary)
-
decode
protected void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpObject obj, java.util.List<java.lang.Object> out)- Specified by:
decodein classio.netty.handler.codec.MessageToMessageDecoder<io.netty.handler.codec.http.HttpObject>
-
-