Code example for Uri.Builder

Methods: appendPath, build

0
	 *          id of image 
	 * @return built URI 
	 */ 
	public static Uri makeThumbnailUri(final String archiveName, final String albumId, final String albumEntryId) {
		final Builder builder = ALBUM_URI.buildUpon();
		builder.appendPath(archiveName);
		builder.appendPath(albumId);
		builder.appendPath("entries");
		builder.appendPath(albumEntryId);
		builder.appendPath("thumbnail");
		return builder.build();
	} 
 
	private static Collection<String> decodeArray(final String keywordValue) {
		try { 
			if (keywordValue == null) {
				return Collections.emptyList();
			} 
			return mapper.readValue(keywordValue, stringListType);
		} catch (final IOException e) {
			throw new RuntimeException("Cannot decode value " + keywordValue, e);