Package freenet.support

Examples of freenet.support.SimpleFieldSet


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


    return dataLength;
  }

  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet fs = new SimpleFieldSet(true);
    fs.putSingle(IDENTIFIER, identifier);
    fs.putOverwrite("Operation", operation.name());
    fs.putOverwrite("DataSource", dataSource.name());
    fs.putOverwrite("MimeType", mimeType);
    fs.putOverwrite("Filename", filename);
    fs.put("DataLength", dataLength);
    return fs;
  }
View Full Code Here

    this.global = global;
  }

  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet fs = new SimpleFieldSet(true);
    fs.putSingle("Identifier", identifier);
    fs.put("Codec", codec);
    if(codec != -1)
      fs.putSingle("Codec.Name", Compressor.COMPRESSOR_TYPE.getCompressorByMetadataID((short)codec).name());
    else
      fs.putSingle("Codec.Name", "NONE");
    fs.put("OriginalSize", origSize);
    fs.put("CompressedSize", compressedSize);
    fs.put("Global", global);
    return fs;
  }
View Full Code Here

    this.global = global;
  }

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

    this.identifier = identifier;
  }

  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet sfs = new SimpleFieldSet(true);
    sfs.putSingle("InsertURI", insertURI.toString());
    sfs.putSingle("RequestURI", requestURI.toString());
    if(identifier != null) // is optional on these two only
      sfs.putSingle("Identifier", identifier);
    return sfs;
  }
View Full Code Here

    this.wakeupTime = wakeupTime;
  }
 
  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet fs = new SimpleFieldSet(false);
    fs.putOverwrite("Identifier", identifier);
    fs.put("Global", global);
    fs.put("WakeupTime", wakeupTime);
    return fs;
  }
View Full Code Here

    ignoreUSKDatehints = fs.getBoolean("IgnoreUSKDatehints", false);
  }

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

    this.newSlotToo = newSlotToo;
  }

  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet fs = new SimpleFieldSet(true);
    fs.putSingle("Identifier", identifier);
    fs.put("Edition", edition);
    fs.putSingle("URI", key.getURI().toString());
    fs.put("NewKnownGood", newKnownGood);
    fs.put("NewSlotToo", newSlotToo);
    return fs;
  }
View Full Code Here

    this.identifier = identifier;
  }

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

    identifier = id;
  }
 
  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet fs = new SimpleFieldSet(true);
    fs.putSingle("Identifier", identifier);
    return fs;
  }
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.