public class AdminRestBundle
extends ru.vyarus.dropwizard.guice.module.context.unique.item.UniqueGuiceyBundle
Such approach is better than registering completely separate jersey context for admin rest because of no overhead and simplicity of jersey extensions management.
If no specific mapping path specified, rest will be mapped into the same path as main rest. If main rest mapping default ('/*') isn't changed, admin rest will be mapped to '/api/*'.
In order to hide admin specific rest methods or entire resources
AdminResource annotation may be used.
If some security solution is used within application, rest could be hidden with security framework permissions.
| Constructor and Description |
|---|
AdminRestBundle()
Admin rest will be mapped on the same path as main rest if rest mapping is different from '/*'.
|
AdminRestBundle(java.lang.String path)
Path must end with '/*', otherwise error will be thrown.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run(ru.vyarus.dropwizard.guice.module.installer.bundle.GuiceyEnvironment environment) |
equals, hashCodepublic AdminRestBundle()
public AdminRestBundle(java.lang.String path)
path - path to map admin rest on