Project

General

Profile

« Previous | Next » 

Revision ec97a876

Added by Niels Hoffmann over 13 years ago

ImageMetadata is now using UriUtils

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/CichorieaeImageImport.java
17 17
import java.util.List;
18 18
import java.util.UUID;
19 19

  
20
import org.apache.http.HttpException;
20 21
import org.apache.log4j.Logger;
21 22
import org.joda.time.DateTime;
22 23
import org.springframework.stereotype.Component;
......
145 146
			logger.error("Malformed URL", e);
146 147
		} catch (IOException e) {
147 148
			logger.error("IOException when handling image url");
149
		} catch (HttpException e) {
150
			logger.error("HttpException when handling image url");
148 151
		}
149 152
	}
150 153

  
......
155 158
	 * @return
156 159
	 * @throws MalformedURLException
157 160
	 * @throws IOException 
161
	 * @throws HttpException 
158 162
	 */
159
	private Media getMedia(String fileName, String taxonName) throws MalformedURLException, IOException {
163
	private Media getMedia(String fileName, String taxonName) throws MalformedURLException, IOException, HttpException {
160 164
		String urlPrefix = "http://media.bgbm.org/erez/erez?src=EditWP6/photos/";
161 165
		String urlString = urlPrefix + fileName;
162 166
		logger.info(urlString);

Also available in: Unified diff