public class ContextBoundUnmarshallerProvider extends DefaultUnmarshallerProvider
UnmarshallerProvider which store a reference to the Unmarshaller in the
ChannelHandlerContext via the ChannelHandlerContext.attr(AttributeKey)
method. So the same Unmarshaller will be used during the life-time of a Channel
for the ChannelHandler's ChannelHandlerContext.| 构造器和说明 |
|---|
ContextBoundUnmarshallerProvider(MarshallerFactory factory,
MarshallingConfiguration config) |
| 限定符和类型 | 方法和说明 |
|---|---|
Unmarshaller |
getUnmarshaller(ChannelHandlerContext ctx)
Get the
Unmarshaller for the given ChannelHandlerContext |
public ContextBoundUnmarshallerProvider(MarshallerFactory factory,
MarshallingConfiguration config)
public Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws java.lang.Exception
UnmarshallerProviderUnmarshaller for the given ChannelHandlerContextgetUnmarshaller 在接口中 UnmarshallerProvidergetUnmarshaller 在类中 DefaultUnmarshallerProviderjava.lang.Exception