@Test public void testFromByteArrayReadsHostName() throws HandshakeException { givenAServerNameExtensionStruct((byte) 0x00, iotEclipseOrg); whenParsingTheExtensionStruct(); assertThat(extension.getServerNames().get(ServerName.NameType.HOST_NAME), is(iotEclipseOrg)); }
public ServerNames getServerNames() { return serverNames; }
ServerNameExtension extends HelloExtension { public ServerNames getServerNames() { return serverNames; } }
ServerNameExtension extends HelloExtension { public ServerNames getServerNames() { return serverNames; } private  ServerNameExtension(); private  ServerNameExtension(final ServerNames serverNames); }
ServerNameExtension extends HelloExtension { public ServerNames getServerNames() { return serverNames; } private  ServerNameExtension(); private  ServerNameExtension(final ServerNames serverNames); static ServerNameExtension emptyServerNameIndication(); static ServerNameExtension forServerNames(final ServerNames serverNames); @Override void addExtensionData(final DatagramWriter writer); static ServerNameExtension fromExtensionDataReader(DatagramReader extensionDataReader, final InetSocketAddress peerAddress); ServerNames getServerNames(); @Override int getLength(); }
ServerNameExtension extends HelloExtension { public ServerNames getServerNames() { return serverNames; } private  ServerNameExtension(); private  ServerNameExtension(final ServerNames serverNames); static ServerNameExtension emptyServerNameIndication(); static ServerNameExtension forServerNames(final ServerNames serverNames); @Override void addExtensionData(final DatagramWriter writer); static ServerNameExtension fromExtensionDataReader(DatagramReader extensionDataReader, final InetSocketAddress peerAddress); ServerNames getServerNames(); @Override int getLength();  }