@Test public void testCustomDirectoryListingHtml() throws Exception { stat.setDirectoryListing(true); String dirTemplate = "custom_dir_template.html"; stat.setDirectoryTemplate(dirTemplate); testDirectoryListingHtmlCustomTemplate(dirTemplate); }
/** * Set the directory template to be used when directory listing * @param directoryTemplate the directory template * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.ext.web.handler.StaticHandler setDirectoryTemplate(String directoryTemplate) { delegate.setDirectoryTemplate(directoryTemplate); return this; }
/** * Set the directory template to be used when directory listing * @param directoryTemplate the directory template * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.ext.web.handler.StaticHandler setDirectoryTemplate(String directoryTemplate) { delegate.setDirectoryTemplate(directoryTemplate); return this; }
@Override public void setUp() throws Exception { super.setUp(); stat = StaticHandler.create("webroot").setDirectoryListing(true).setDirectoryTemplate("custom_dir_template.html"); router.route().handler(stat); }
@Test public void testCustomDirectoryListingHtml() throws Exception { stat.setDirectoryListing(true); String dirTemplate = "custom_dir_template.html"; stat.setDirectoryTemplate(dirTemplate); testDirectoryListingHtmlCustomTemplate(dirTemplate); }
@Override public void setUp() throws Exception { super.setUp(); stat = StaticHandler.create("webroot").setDirectoryListing(true).setDirectoryTemplate("custom_dir_template.html"); router.route().handler(stat); }