@Test(expected = ErrorMessageException.class) public void testOnParseInputExceptionHandling() throws Exception { sxpv4.onParseInput(Unpooled.buffer()); }
@Override public Notification onParseInput(ByteBuf request) throws ErrorMessageException { try { return MessageFactory.parse(Version.Version4, request); } catch (AttributeVariantException | UnknownSxpMessageTypeException | AddressLengthException | UnknownHostException | AttributeLengthException | TlvNotFoundException | UnknownNodeIdException | UnknownPrefixException e) { throw new ErrorMessageException(ErrorCodeNonExtended.MessageParseError, e); } }
Sxpv4 extends AbstractStrategy { @Override public Notification onParseInput(ByteBuf request) throws ErrorMessageException { try { return MessageFactory.parse(Version.Version4, request); } catch (AttributeVariantException | UnknownSxpMessageTypeException | AddressLengthException | UnknownHostException | AttributeLengthException | TlvNotFoundException | UnknownNodeIdException | UnknownPrefixException e) { throw new ErrorMessageException(ErrorCodeNonExtended.MessageParseError, e); } } }
Sxpv4 extends AbstractStrategy { @Override public Notification onParseInput(ByteBuf request) throws ErrorMessageException { try { return MessageFactory.parse(Version.Version4, request); } catch (AttributeVariantException | UnknownSxpMessageTypeException | AddressLengthException | UnknownHostException | AttributeLengthException | TlvNotFoundException | UnknownNodeIdException | UnknownPrefixException e) { throw new ErrorMessageException(ErrorCodeNonExtended.MessageParseError, e); } } Sxpv4(SxpNode ownerNode); }
Sxpv4 extends AbstractStrategy { @Override public Notification onParseInput(ByteBuf request) throws ErrorMessageException { try { return MessageFactory.parse(Version.Version4, request); } catch (AttributeVariantException | UnknownSxpMessageTypeException | AddressLengthException | UnknownHostException | AttributeLengthException | TlvNotFoundException | UnknownNodeIdException | UnknownPrefixException e) { throw new ErrorMessageException(ErrorCodeNonExtended.MessageParseError, e); } } Sxpv4(SxpNode ownerNode); @Override void onChannelActivation(final ChannelHandlerContext ctx, SxpConnection connection); @Override void onInputMessage(ChannelHandlerContext ctx, SxpConnection connection, Notification message); @Override Notification onParseInput(ByteBuf request); @Override ByteBuf onUpdateMessage(SxpConnection connection, List<T> deleteBindings,
            List<T> addBindings, SxpBindingFilter bindingFilter); }
Sxpv4 extends AbstractStrategy { @Override public Notification onParseInput(ByteBuf request) throws ErrorMessageException { try { return MessageFactory.parse(Version.Version4, request); } catch (AttributeVariantException | UnknownSxpMessageTypeException | AddressLengthException | UnknownHostException | AttributeLengthException | TlvNotFoundException | UnknownNodeIdException | UnknownPrefixException e) { throw new ErrorMessageException(ErrorCodeNonExtended.MessageParseError, e); } } Sxpv4(SxpNode ownerNode); @Override void onChannelActivation(final ChannelHandlerContext ctx, SxpConnection connection); @Override void onInputMessage(ChannelHandlerContext ctx, SxpConnection connection, Notification message); @Override Notification onParseInput(ByteBuf request); @Override ByteBuf onUpdateMessage(SxpConnection connection, List<T> deleteBindings,
            List<T> addBindings, SxpBindingFilter bindingFilter);  }