Examples of Addresses


Examples of org.openstack.model.compute.Addresses

    // if (!Strings.isNullOrEmpty(ip)) {
    // tags.add(new Tag(Tag.NETWORK_ADDRESS, ip));
    // }
    // }

    Addresses addresses = server.getAddresses();
    for (Network network : addresses.getNetworks()) {
      if ("public".equals(network.getId())) {
        for (Ip ip : network.getIps()) {
          if (Strings.isNullOrEmpty(ip.getAddr())) {
            continue;
          }

          ips.add(ip);
        }
      }
    }

    CloudBehaviours behaviours = new CloudBehaviours(cloud);
    if (behaviours.publicIpsReportedAsPrivate()) {
      for (Network network : addresses.getNetworks()) {
        if ("private".equals(network.getId())) {
          for (Ip ip : network.getIps()) {
            if (Strings.isNullOrEmpty(ip.getAddr())) {
              continue;
            }
View Full Code Here

Examples of rocks.xmpp.extensions.address.model.Addresses

    @Test
    public void marshalAddresses() throws JAXBException, XMLStreamException {
        List<Address> addressList = new ArrayList<>();
        addressList.add(new Address(Address.Type.TO, Jid.valueOf("hildjj@jabber.org/Work"), "description", "node"));
        addressList.add(new Address(Address.Type.CC, Jid.valueOf("jer@jabber.org/Home")));
        Addresses addresses = new Addresses(addressList);

        String xml = marshal(addresses);
        Assert.assertEquals(xml, "<addresses xmlns=\"http://jabber.org/protocol/address\"><address type=\"to\" jid=\"hildjj@jabber.org/Work\" desc=\"description\" node=\"node\"></address><address type=\"cc\" jid=\"jer@jabber.org/Home\"></address></addresses>");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.