Lines Matching refs:path
45 /** Resource path at which the print service can be reached */
46 public final Uri path;
56 * @param path Network path at which the printer is currently available
59 public DiscoveredPrinter(Uri uuid, String name, Uri path, String location) {
62 this.path = path;
69 Uri uuid = null, path = null;
81 case "path":
82 path = Uri.parse(reader.nextString());
91 if (printerName == null || path == null) throw new IOException("Missing name or path");
94 this.path = path;
100 * from the path (if UUID is missing)
103 return uuid != null ? uuid : path;
106 /** Return a generated printer ID based on uuid or (if uuid is missing) its path */
116 String host = path.getHost().replaceAll(":[0-9]+", "");
130 writer.name("path").value(path.toString());
142 return new DiscoveredPrinter(uuid, longest(name, other.name), path,
158 Objects.equals(path, other.path) &&
167 result = 31 * result + path.hashCode();