public final class NetconfXMLToHelloMessageDecoder
extends io.netty.handler.codec.ByteToMessageDecoder
NetconfHelloMessage*
This handler should be replaced in pipeline by regular message handler as last step of negotiation.
It serves as a message barrier and halts all non-hello netconf messages.
Netconf messages after hello should be processed once the negotiation succeeded.| Constructor and Description |
|---|
NetconfXMLToHelloMessageDecoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out) |
Iterable<org.opendaylight.netconf.api.NetconfMessage> |
getPostHelloNetconfMessages()
Get netconf messages received during negotiation.
|
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtpublic void decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out)
throws IOException,
SAXException,
org.opendaylight.netconf.api.NetconfDocumentedException
decode in class io.netty.handler.codec.ByteToMessageDecoderIOExceptionSAXExceptionorg.opendaylight.netconf.api.NetconfDocumentedExceptionpublic Iterable<org.opendaylight.netconf.api.NetconfMessage> getPostHelloNetconfMessages()
Copyright © 2017 OpenDaylight. All rights reserved.