Package freenet.support

Examples of freenet.support.SimpleFieldSet


    this.identifier = identifier;
  }
 
  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet sfs = new SimpleFieldSet(true);
    sfs.putSingle("NodeIdentifier", nodeIdentifier);
    if(identifier != null)
      sfs.putSingle("Identifier", identifier);
    return sfs;
  }
View Full Code Here


  public SimpleFieldSet getFieldSet() {
    if(hashes == null) {
      Logger.error(this, "Hashes == null, possibly persistence issue caused prior to build 1411 on "+this);
      return null;
    }
    SimpleFieldSet fs = new SimpleFieldSet(false);
    SimpleFieldSet values = new SimpleFieldSet(false);
    for(HashResult hash : hashes) {
      if(hash == null) {
        Logger.error(this, "Hash == null, possibly persistence issue caused prior to build 1411 on "+this);
        return null;
      }
      values.putOverwrite(hash.type.name(), hash.hashAsHex());
    }
    fs.put("Hashes", values);
    fs.putOverwrite("Identifier", identifier);
    fs.put("Global", global);
    return fs;
View Full Code Here

      dataLength = -1;
  }

  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet fs = new SimpleFieldSet(true);
    fs.putSingle("Identifier", identifier);
    fs.putSingle("NodeIdentifier", nodeIdentifier);
    if(dataLength >= 0)
      fs.put("DataLength", dataLength);
    return fs;
  }
View Full Code Here

    this.onlyData = fs.getBoolean("OnlyData", false);
  }

  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet fs = new SimpleFieldSet(true);
    fs.putSingle("Identifier", identifier);
    return fs;
  }
View Full Code Here

    this.message = m;
  }
 
  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet sfs = new SimpleFieldSet(true);
    sfs.putSingle("Identifier", message.identifier);
    sfs.putSingle("URI", message.key.getURI().toString());
    sfs.put("DontPoll", message.dontPoll);
   
    return sfs;
  }
View Full Code Here

    fs.removeValue("Identifier");
  }

  @Override
  public SimpleFieldSet getFieldSet() {
    return new SimpleFieldSet(true);
  }
View Full Code Here

    fs.removeValue("Identifier");
  }
 
  @Override
  public SimpleFieldSet getFieldSet() {
    return new SimpleFieldSet(true);
  }
View Full Code Here

    this.plugname = plugname2;
  }

  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet sfs = new SimpleFieldSet(true);
    sfs.putSingle("Identifier", identifier);
    sfs.putSingle("PluginName", plugname);
    return sfs;
  }
View Full Code Here

    return dataLength;
  }

  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet fs = new SimpleFieldSet(true);
    fs.put("DataLength", dataLength);
    fs.putSingle("Identifier", identifier);
    fs.put("Global", global);
    fs.put("StartupTime", startupTime);
    fs.put("CompletionTime", completionTime);
    if(mimeType!=null) fs.putSingle("Metadata.ContentType", mimeType);
    return fs;
  }
View Full Code Here

    // Do nothing
  }
 
  @Override
  public SimpleFieldSet getFieldSet() {
    return new SimpleFieldSet(true);
  }
View Full Code Here

TOP

Related Classes of freenet.support.SimpleFieldSet

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.