Package freenet.support

Examples of freenet.support.SimpleFieldSet


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


    version = pi.getPluginVersion();
  }

  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet sfs = new SimpleFieldSet(true);
    if(identifier != null) // is optional on these two only
      sfs.putSingle("Identifier", identifier);
    sfs.putSingle("PluginName", classname);
    sfs.put("IsTalkable", isTalkable);
    sfs.put("LongVersion", longVersion);
    sfs.putSingle("Version", version);

    if (detailed) {
      sfs.putSingle("OriginUri", originuri);
      sfs.put("Started", started);
      //sfs.putSingle("TempFilename", tempfilename);
    }
    return sfs;
  }
View Full Code Here

    return dataLength;
  }

  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet fs = new SimpleFieldSet(true);
    fs.putSingle(IDENTIFIER, identifier);
    fs.putOverwrite("Charset", charset);
    fs.putOverwrite("MimeType", mimeType);
    fs.put("UnsafeContentType", unsafeContentType);
    fs.put("DataLength", dataLength);
    return fs;
  }
View Full Code Here

    this.received = received;
  }

  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet fs = super.getFieldSet();
    fs.putSingle("SourceNodeName", sourceNodeName);
    if (composed != -1)
      fs.put("TimeComposed", composed);
    if (sent != -1)
      fs.put("TimeSent", sent);
    if (received != -1)
      fs.put("TimeReceived", received);
    return fs;
  }
View Full Code Here

    this.global = global;
  }

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

    }
  }

  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet fs = super.getFieldSet();
    fs.putSingle("URI", uri.toString());
    return fs;
  }
View Full Code Here

    this.global = global2;
  }

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

    this.identifier = identifier;
  }
 
  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet fs;
    if(giveOpennetRef) {
      if(withPrivate) {
        fs = node.exportOpennetPrivateFieldSet();
      } else {
        fs = node.exportOpennetPublicFieldSet();
      }
    } else {
      if(withPrivate) {
        fs = node.exportDarknetPrivateFieldSet();
      } else {
        fs = node.exportDarknetPublicFieldSet();
      }
    }
    if(withVolatile) {
      SimpleFieldSet vol = node.exportVolatileFieldSet();
      if(!vol.isEmpty()) {
         fs.put("volatile", vol);
      }
    }
    if(identifier != null)
      fs.putSingle("Identifier", identifier);
View Full Code Here

    fs.removeValue("Identifier");
  }

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

      node.clientCore.alerts.unwatch(handler);
  }

  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet fs = new SimpleFieldSet(true);
    fs.put("Enabled", enabled);
    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.