@Test public void testGetLinkSubTypeTlvBodyAsByteArray() throws Exception { result = linkId.getLinkSubTypeTlvBodyAsByteArray(); assertThat(result, is(notNullValue())); }
public byte[] getLinkSubTypeTlvBodyAsByteArray() throws Exception { byte[] linkSubTypeBody = null; try { linkSubTypeBody = InetAddress.getByName(this.linkId).getAddress(); } catch (Exception e) { log.debug("Error::LinkId:: {}", e.getMessage()); throw new OspfParseException(OspfErrorType.OSPF_MESSAGE_ERROR, OspfErrorType.BAD_MESSAGE); } return linkSubTypeBody; }
LinkId extends TlvHeader implements LinkSubType { public byte[] getLinkSubTypeTlvBodyAsByteArray() throws Exception { byte[] linkSubTypeBody = null; try { linkSubTypeBody = InetAddress.getByName(this.linkId).getAddress(); } catch (Exception e) { log.debug("Error::LinkId:: {}", e.getMessage()); throw new OspfParseException(OspfErrorType.OSPF_MESSAGE_ERROR, OspfErrorType.BAD_MESSAGE); } return linkSubTypeBody; } }
LinkId extends TlvHeader implements LinkSubType { public byte[] getLinkSubTypeTlvBodyAsByteArray() throws Exception { byte[] linkSubTypeBody = null; try { linkSubTypeBody = InetAddress.getByName(this.linkId).getAddress(); } catch (Exception e) { log.debug("Error::LinkId:: {}", e.getMessage()); throw new OspfParseException(OspfErrorType.OSPF_MESSAGE_ERROR, OspfErrorType.BAD_MESSAGE); } return linkSubTypeBody; } LinkId(TlvHeader header); }
LinkId extends TlvHeader implements LinkSubType { public byte[] getLinkSubTypeTlvBodyAsByteArray() throws Exception { byte[] linkSubTypeBody = null; try { linkSubTypeBody = InetAddress.getByName(this.linkId).getAddress(); } catch (Exception e) { log.debug("Error::LinkId:: {}", e.getMessage()); throw new OspfParseException(OspfErrorType.OSPF_MESSAGE_ERROR, OspfErrorType.BAD_MESSAGE); } return linkSubTypeBody; } LinkId(TlvHeader header); void setLinkId(String linkType); void readFrom(ChannelBuffer channelBuffer); byte[] asBytes(); byte[] getLinkSubTypeTlvBodyAsByteArray(); @Override String toString(); }
LinkId extends TlvHeader implements LinkSubType { public byte[] getLinkSubTypeTlvBodyAsByteArray() throws Exception { byte[] linkSubTypeBody = null; try { linkSubTypeBody = InetAddress.getByName(this.linkId).getAddress(); } catch (Exception e) { log.debug("Error::LinkId:: {}", e.getMessage()); throw new OspfParseException(OspfErrorType.OSPF_MESSAGE_ERROR, OspfErrorType.BAD_MESSAGE); } return linkSubTypeBody; } LinkId(TlvHeader header); void setLinkId(String linkType); void readFrom(ChannelBuffer channelBuffer); byte[] asBytes(); byte[] getLinkSubTypeTlvBodyAsByteArray(); @Override String toString();  }