164165166167168169170171172173174
* of a config bean */ protected boolean canShowDeprecatedItems() { RestConfig rg = ResourceUtil.getRestConfig(habitat); if ((rg != null) && (rg.getShowDeprecatedItems().equalsIgnoreCase("true"))) { return true; } return false; }
176177178179180181182183184185186187
* check for the __debug request header * */ protected boolean isDebug() { RestConfig rg = ResourceUtil.getRestConfig(habitat); if ((rg != null) && (rg.getDebug().equalsIgnoreCase("true"))) { return true; } if (requestHeaders == null) { return true;
560561562563564565566567568569570571572
/** * Get the current configured indenting value for the REST layer * @return */ public static int getFormattingIndentLevel() { RestConfig rg = ResourceUtil.getRestConfig(Globals.getDefaultBaseServiceLocator()); if (rg == null) { return -1; } else { return Integer.parseInt(rg.getIndentLevel()); } }