public final class DefaultJohnsonConfig extends Object implements JohnsonConfig
JohnsonConfig which may be used as a failsafe when no other configuration is
available.
All URIs are ignored by this implementation. All collection-returning properties are
implemented to return empty, immutable collections. All other methods generally return null, except for:
SetupConfig is provided by DefaultSetupConfigContainerFactory is provided by DefaultContainerFactorygetInstance().| Modifier and Type | Method and Description |
|---|---|
List<ApplicationEventCheck> |
getApplicationEventChecks()
Always empty but non-
null. |
ContainerFactory |
getContainerFactory()
Always an instance of
DefaultContainerFactory. |
String |
getErrorPath()
Always
"/unavailable". |
EventCheck |
getEventCheck(int id)
Always
null. |
List<EventCheck> |
getEventChecks()
Always empty but non-
null. |
EventLevel |
getEventLevel(String level)
Always
null. |
EventType |
getEventType(String type)
Always
null. |
List<String> |
getIgnorePaths()
Always empty but non-
null. |
static JohnsonConfig |
getInstance()
Retrieves the immutable singleton instance of the default configuration.
|
Map<String,String> |
getParams()
Always empty but non-
null. |
List<RequestEventCheck> |
getRequestEventChecks()
Always empty but non-
null. |
SetupConfig |
getSetupConfig()
Always an instance of
DefaultSetupConfig. |
String |
getSetupPath()
Always
"/setup". |
boolean |
isIgnoredPath(String uri)
Always
true. |
@Nonnull public static JohnsonConfig getInstance()
@Nonnull public List<ApplicationEventCheck> getApplicationEventChecks()
null.getApplicationEventChecks in interface JohnsonConfig@Nonnull public ContainerFactory getContainerFactory()
DefaultContainerFactory.getContainerFactory in interface JohnsonConfig@Nonnull public String getErrorPath()
"/unavailable". isIgnoredPath(String) always returns true, so this path
should never be accessed; Johnson processing is bypassed for all paths.getErrorPath in interface JohnsonConfig"/unavailable"public EventCheck getEventCheck(int id)
null.getEventCheck in interface JohnsonConfigid - ignorednull@Nonnull public List<EventCheck> getEventChecks()
null.getEventChecks in interface JohnsonConfigpublic EventLevel getEventLevel(@Nonnull String level)
null.getEventLevel in interface JohnsonConfiglevel - ignorednullpublic EventType getEventType(@Nonnull String type)
null.getEventType in interface JohnsonConfigtype - ignorednull@Nonnull public List<String> getIgnorePaths()
null.getIgnorePaths in interface JohnsonConfig@Nonnull public Map<String,String> getParams()
null.getParams in interface JohnsonConfig@Nonnull public List<RequestEventCheck> getRequestEventChecks()
null.getRequestEventChecks in interface JohnsonConfig@Nonnull public SetupConfig getSetupConfig()
DefaultSetupConfig.getSetupConfig in interface JohnsonConfig@Nonnull public String getSetupPath()
"/setup". The default configuration is always setup, so this path should never be accessed.getSetupPath in interface JohnsonConfig"/setup"public boolean isIgnoredPath(@Nonnull String uri)
true. This has the net effect of disabling Johnson, because all URIs included for filtering will
be ignored and events will not be processed for them.isIgnoredPath in interface JohnsonConfiguri - ignoredtrueCopyright © 2017 Atlassian. All rights reserved.