Package net.pterodactylus.sone.data

Examples of net.pterodactylus.sone.data.Client


      String clientVersion = clientXml.getValue("version", null);
      if ((clientName == null) || (clientVersion == null)) {
        logger.log(Level.WARNING, String.format("Download Sone %s with client XML but missing name or version!", sone));
        return null;
      }
      sone.setClient(new Client(clientName, clientVersion));
    }

    String soneRequestUri = soneXml.getValue("request-uri", null);
    if (soneRequestUri != null) {
      try {
View Full Code Here


      } catch (MalformedURLException mue1) {
        logger.log(Level.SEVERE, String.format("Could not convert the Identity’s URIs to Freenet URIs: %s, %s", ownIdentity.getInsertUri(), ownIdentity.getRequestUri()), mue1);
        return null;
      }
      sone.setLatestEdition(Numbers.safeParseLong(ownIdentity.getProperty("Sone.LatestEdition"), (long) 0));
      sone.setClient(new Client("Sone", SonePlugin.VERSION.toString()));
      sone.setKnown(true);
      /* TODO - load posts ’n stuff */
      sones.put(ownIdentity.getId(), sone);
      final SoneInserter soneInserter = new SoneInserter(this, eventBus, freenetInterface, sone);
      soneInserters.put(sone, soneInserter);
View Full Code Here

TOP

Related Classes of net.pterodactylus.sone.data.Client

Copyright © 2018 www.massapicom. 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.