Returns the addressed database (i.e., the first path entry). @return database, or null if the root directory was specified
()
| 147 | * @return database, or {@code null} if the root directory was specified |
| 148 | */ |
| 149 | public String db() { |
| 150 | final int i = path.indexOf('/', 1); |
| 151 | return path.substring(1, i == -1 ? path.length() : i); |
| 152 | } |
| 153 | |
| 154 | /** |
| 155 | * Returns all accepted media types. |