コード例 #1
0
 /** @inheritDoc */
 @Override
 public String getImageURL(Image image, Integer maxWidth, Integer maxHeight) {
   try {
     return "http://www.mysqueezebox.com/public/imageproxy?u="
         + URLEncoder.encode(image.getUri(), "utf8")
         + "&w="
         + maxWidth
         + "&h="
         + maxHeight;
   } catch (UnsupportedEncodingException e) {
     e.printStackTrace();
     return null;
   }
 }
コード例 #2
0
 /** @inheritDoc */
 @Override
 public String getImageURL(Image image) {
   return image.getUri();
   // TODO: Do we want all images to go through mysqueezebox.com image proxy ?
   // return "http://www.mysqueezebox.com/public/imageproxy?u=" + image.getUri();
 }