private void setInfo() throws IOException {
   if (branding != null && provider != null) {
     setVersion();
     setTitle();
     this.productImage = getBase64(branding.getProductImage());
     this.favicon = getBase64(branding.getFavIcon());
   }
 }
Example #2
0
 public KmlEndpoint(BrandingPlugin brandingPlugin, CatalogFramework catalogFramework) {
   LOGGER.trace("ENTERING: KML Endpoint Constructor");
   this.branding = brandingPlugin;
   this.framework = catalogFramework;
   templateLoader = new ClassPathTemplateLoader();
   templateLoader.setPrefix("/templates");
   templateLoader.setSuffix(".hbt");
   this.productName = branding.getProductName().split(" ")[0];
   LOGGER.trace("EXITING: KML Endpoint Constructor");
 }
 private void setVersion() {
   if (branding != null) {
     version = branding.getProductName();
   }
 }