Exemple #1
0
 /**
  * Creates a SourceRef object from a Source object. The Server argument is required to build the
  * URI in the SourceRef pointing to the full Source resource.
  *
  * @param source The Source to build the SourceRef from.
  * @param server The Server where the Source is located.
  */
 public SourceRef(Source source, Server server) {
   this(source, server.getHostName() + Server.SOURCES_URI + "/" + source.getName());
 }
Exemple #2
0
 /**
  * Sets the value of the href property based on the name and Server provided.
  *
  * @param name The name of the Source.
  * @param server The Server this object belongs to.
  */
 public void setHref(String name, Server server) {
   this.href = server.getHostName() + Server.SOURCES_URI + "/" + name;
 }