Codota Logo
AssetsBundle.<init>
Code IndexAdd Codota to your IDE (free)

How to use
io.dropwizard.assets.AssetsBundle
constructor

Best Java code snippets using io.dropwizard.assets.AssetsBundle.<init> (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: stackoverflow.com

bootstrap.addBundle(new AssetsBundle("/app", "/", "index.html", "static"));
origin: dropwizard/dropwizard

@Override
public void initialize(Bootstrap<HelloWorldConfiguration> bootstrap) {
  // Enable variable substitution with environment variables
  bootstrap.setConfigurationSourceProvider(
      new SubstitutingSourceProvider(
          bootstrap.getConfigurationSourceProvider(),
          new EnvironmentVariableSubstitutor(false)
      )
  );
  bootstrap.addCommand(new RenderCommand());
  bootstrap.addBundle(new AssetsBundle());
  bootstrap.addBundle(new MigrationsBundle<HelloWorldConfiguration>() {
    @Override
    public DataSourceFactory getDataSourceFactory(HelloWorldConfiguration configuration) {
      return configuration.getDataSourceFactory();
    }
  });
  bootstrap.addBundle(hibernateBundle);
  bootstrap.addBundle(new ViewBundle<HelloWorldConfiguration>() {
    @Override
    public Map<String, Map<String, String>> getViewConfiguration(HelloWorldConfiguration configuration) {
      return configuration.getViewRendererConfiguration();
    }
  });
}
origin: HubSpot/Singularity

bootstrap.addBundle(new AssetsBundle("/assets/static/", "/static/"));
bootstrap.addBundle(new MigrationsBundle<SingularityConfiguration>() {
 @Override
origin: stanford-futuredata/macrobase

@Override
public void initialize(Bootstrap<MacroBaseConf> bootstrap) {
  bootstrap.addBundle(new AssetsBundle("/frontend", "/", "console.html"));
}
origin: pinterest/doctorkafka

@Override
public void initialize(Bootstrap<DoctorKafkaAppConfig> bootstrap) {
 bootstrap.addBundle(new AssetsBundle("/webapp/pages/", "/", "index.html"));
}
origin: com.srotya.sidewinder/sidewinder-core

@Override
public void initialize(Bootstrap<SidewinderConfig> bootstrap) {
  if (!Boolean.parseBoolean(System.getProperty(ConfigConstants.UI_DISABLE, "true"))) {
    bootstrap.addBundle(new AssetsBundle("/web", "/ui", "index.html"));
  }
}
origin: com.fasterxml.clustermate/clustermate-dropwizard

@Override
public void initialize(Bootstrap<CONF> bootstrap) {
  // Static stuff from under /html (except for root  level things
  // like /index.html that need special handling)
  bootstrap.addBundle(new AssetsBundle("/html"));
}
origin: ahus1/keycloak-dropwizard-integration

@Override
public void initialize(Bootstrap<LotteryConfiguration> bootstrap) {
  // set up folders for static content
  bootstrap.addBundle(new AssetsBundle("/assets/ajax", "/ajax", null, "ajax"));
}
origin: flaxsearch/BioSolr

@Override
public void initialize(Bootstrap<OntologyConfiguration> bootstrap) {
  // Add bundle for static asset directories
  bootstrap.addBundle(new AssetsBundle("/static", "/", "index.html", "static"));
  // Add webjars AssetsBundle, to include bootstrap, etc.
  bootstrap.addBundle(new AssetsBundle("/META-INF/resources/webjars", "/webjars", null, "webjars"));
}
origin: ahus1/keycloak-dropwizard-integration

@Override
public void initialize(Bootstrap<LotteryConfiguration> bootstrap) {
  // set up folders for static content
  bootstrap.addBundle(new AssetsBundle("/assets/css", "/css", null, "css"));
  bootstrap.addBundle(new AssetsBundle("/assets/js", "/js", null, "js"));
  bootstrap.addBundle(new AssetsBundle("/assets/fonts", "/fonts", null, "fonts"));
  bootstrap.addBundle(new AssetsBundle("/assets/html", "/html", null, "html"));
  // setup Freemarker views.
  bootstrap.addBundle(new ViewBundle());
}
origin: hortonworks/streamline

@Override
public void initialize(Bootstrap<StreamlineConfiguration> bootstrap) {
  bootstrap.addBundle(new AssetsBundle("/assets", "/", "index.html", "static"));
  super.initialize(bootstrap);
}
origin: org.opennms.newts/newts-rest

@Override
public void initialize(Bootstrap<NewtsConfig> bootstrap) {
  bootstrap.addCommand(new InitCommand());
  bootstrap.addBundle(new AssetsBundle("/app", UI_URL_PATH, "index.html"));
}
origin: OpenNMS/newts

@Override
public void initialize(Bootstrap<NewtsConfig> bootstrap) {
  bootstrap.addCommand(new InitCommand());
  bootstrap.addBundle(new AssetsBundle("/app", UI_URL_PATH, "index.html"));
}
origin: Yubico/java-u2flib-server

@Override
public void initialize(Bootstrap<Config> bootstrap) {
  bootstrap.addBundle(new ViewBundle());
  bootstrap.addBundle(new AssetsBundle());
}
origin: com.hortonworks.registries/registry-webservice

@Override
public void initialize(Bootstrap<RegistryConfiguration> bootstrap) {
  // always deploy UI on /ui. If there is no other filter like Confluent etc, redirect / to /ui
  bootstrap.addBundle(new AssetsBundle("/assets", "/ui", "index.html", "static"));
  bootstrap.addBundle(new SwaggerBundle<RegistryConfiguration>() {
    @Override
    protected SwaggerBundleConfiguration getSwaggerBundleConfiguration(RegistryConfiguration registryConfiguration) {
      return registryConfiguration.getSwaggerBundleConfiguration();
    }
  });
  super.initialize(bootstrap);
}
origin: hortonworks/registry

@Override
public void initialize(Bootstrap<RegistryConfiguration> bootstrap) {
  // always deploy UI on /ui. If there is no other filter like Confluent etc, redirect / to /ui
  bootstrap.addBundle(new AssetsBundle("/assets", "/ui", "index.html", "static"));
  bootstrap.addBundle(new SwaggerBundle<RegistryConfiguration>() {
    @Override
    protected SwaggerBundleConfiguration getSwaggerBundleConfiguration(RegistryConfiguration registryConfiguration) {
      return registryConfiguration.getSwaggerBundleConfiguration();
    }
  });
  super.initialize(bootstrap);
}
origin: Yubico/java-u2flib-server

@Override
public void initialize(Bootstrap<Config> bootstrap) {
  bootstrap.addBundle(new ViewBundle());
  bootstrap.addBundle(new AssetsBundle());
}
origin: palantir/dropwizard-web-security

@Override
public void initialize(Bootstrap<ExampleConfiguration> bootstrap) {
  bootstrap.addBundle(this.webSecurityBundle);
  bootstrap.addBundle(new AssetsBundle("/assets/", "/", "index.html"));
}
origin: jtanza/rufus

@Override
public void initialize(Bootstrap<RufusConfiguration> bootstrap) {
  bootstrap.addBundle(new AssetsBundle("/app", "/", "index.html"));
  bootstrap.addBundle(new ViewBundle<>());
  bootstrap.addBundle(new MultiPartBundle());
  bootstrap.addBundle(new MigrationsBundle<RufusConfiguration>() {
    @Override
    public DataSourceFactory getDataSourceFactory(RufusConfiguration conf) {
      return conf.getDataSourceFactory();
    }
  });
}
origin: epam/DLab

@Override
public void initialize(Bootstrap<SelfServiceApplicationConfiguration> bootstrap) {
  super.initialize(bootstrap);
  bootstrap.addBundle(new MultiPartBundle());
  bootstrap.addBundle(new AssetsBundle("/webapp/dist", "/", "index.html"));
  bootstrap.addBundle(new TemplateConfigBundle(
      new TemplateConfigBundleConfiguration().fileIncludePath(ServiceUtils.getConfPath())
  ));
}
io.dropwizard.assetsAssetsBundle<init>

Javadoc

Creates a new AssetsBundle which serves up static assets from src/main/resources/assets/* as /assets/*.

Popular methods of AssetsBundle

  • createServlet

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ImageIO (javax.imageio)
  • JLabel (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now