public static class SpaBundle.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder(boolean mainContext,
java.lang.String name,
java.lang.String path,
java.lang.String uri) |
| Modifier and Type | Method and Description |
|---|---|
SpaBundle |
build() |
SpaBundle.Builder |
indexPage(java.lang.String name) |
SpaBundle.Builder |
preventRedirectRegex(java.lang.String regex)
Redirect filter will prevent redirection when accept header is not compatible with text/html.
|
void |
register(ru.vyarus.dropwizard.guice.module.installer.bundle.GuiceyBootstrap bootstrap)
Use when spa bundle must be registered withing guicey bundle
(guicey bundle could register custom application, e.g. for administration).
|
public Builder(boolean mainContext,
java.lang.String name,
java.lang.String path,
java.lang.String uri)
public SpaBundle.Builder indexPage(java.lang.String name)
name - index file name (by default "index.html")public SpaBundle.Builder preventRedirectRegex(java.lang.String regex)
SpaBundle.DEFAULT_PATTERN is used to prevent redirection in
some cases. By default it's all common web files (html, css, js) with possible version markers
(e.g. ?ver=1214324).
NOTE: regex is applied with "find", so use ^ or $ to apply boundaries.
regex - regular expression to prevent redirection to root (prevent when regex matched)public SpaBundle build()
public void register(ru.vyarus.dropwizard.guice.module.installer.bundle.GuiceyBootstrap bootstrap)
bootstrap - guicey bootstrap object