/** * Sets the code base for an MLET entry. The codebase is trimmed of quotes (") and * additional equals (=) sign. * * @param url url string pointing to the codebase */ public void setCodebase(String url) { this.codebase = trim(url); }
/** * Sets the name of the serialized MBean instance. Notice that if the archive * contains a file structure its path must be included in the name. Tje name is * trimmed of quotes (") and additional equals (=) sign. * * @param object file name and path in the archive */ public void setObject(String object) { this.object = trim(object); }
/** * Sets the object name of the MBean. The name is trimmed of quotes (") and additional * equals (=) sign. * * @param name string representation of an MBean object name */ public void setName(String name) { this.name = trim(name); }
public void setVersion(String version) { version = trim(version); StringTokenizer tokenizer = new StringTokenizer(version, " ,"); while (tokenizer.hasMoreTokens()) versions.add(tokenizer.nextToken()); }
public void setArchive(String archive) { archive = trim(archive); StringTokenizer tokenizer = new StringTokenizer(archive, " ,"); while (tokenizer.hasMoreTokens()) archives.add(tokenizer.nextToken()); }
/** * Sets the fully qualified class name of the MBean entry. The name is trimmed * of quotes (") and additional equals (=) sign. * * @param code fully qualified class name of the MBean */ public void setCode(String code) { this.code = trim(code); if (this.code.endsWith(".class")) this.code = this.code.substring(0, this.code.length() - 6); }