Package org.servalproject.servaldna

Examples of org.servalproject.servaldna.FileHash


  private static RhizomeManifest manifestFromHeaders(HttpURLConnection conn) throws ServalDInterfaceException
  {
    BundleId id = header(conn, "Serval-Rhizome-Bundle-Id", BundleId.class);
    long version = headerUnsignedLong(conn, "Serval-Rhizome-Bundle-Version");
    long filesize = headerUnsignedLong(conn, "Serval-Rhizome-Bundle-Filesize");
    FileHash filehash = filesize == 0 ? null : header(conn, "Serval-Rhizome-Bundle-Filehash", FileHash.class);
    SubscriberId sender = headerOrNull(conn, "Serval-Rhizome-Bundle-Sender", SubscriberId.class);
    SubscriberId recipient = headerOrNull(conn, "Serval-Rhizome-Bundle-Recipient", SubscriberId.class);
    BundleKey BK = headerOrNull(conn, "Serval-Rhizome-Bundle-BK", BundleKey.class);
    Integer crypt = headerIntegerOrNull(conn, "Serval-Rhizome-Bundle-Crypt");
    Long tail = headerUnsignedLongOrNull(conn, "Serval-Rhizome-Bundle-Tail");
View Full Code Here


            else if (fieldName.equals("version"))
              this.version = parseField(this.version, parseUnsignedLong(fieldValue));
            else if (fieldName.equals("filesize"))
              this.filesize = parseField(this.filesize, parseUnsignedLong(fieldValue));
            else if (fieldName.equals("filehash"))
              this.filehash = parseField(this.filehash, new FileHash(fieldValue));
            else if (fieldName.equals("sender"))
              this.sender = parseField(this.sender, new SubscriberId(fieldValue));
            else if (fieldName.equals("recipient"))
              this.recipient = parseField(this.recipient, new SubscriberId(fieldValue));
            else if (fieldName.equals("BK"))
View Full Code Here

TOP

Related Classes of org.servalproject.servaldna.FileHash

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.