127128129130131132133134135136137138139140
} public abstract String getContent(T proxy); protected int getFormattingIndentLevel() { RestConfig rg = ResourceUtil.getRestConfig(habitat); if (rg == null){ return -1; } else { return Integer.parseInt(rg.getIndentLevel()); } }
142143144145146147148149150151152
/** * returns true if the HTML viewer displays the hidden CLI command links */ protected boolean canShowHiddenCommands() { RestConfig rg = ResourceUtil.getRestConfig(habitat); if ((rg != null) && (rg.getShowHiddenCommands().equalsIgnoreCase("true"))) { return true; } return false; }
156157158159160161162163164165166
* of a config bean */ protected boolean canShowDeprecatedItems() { RestConfig rg = ResourceUtil.getRestConfig(habitat); if ((rg != null) && (rg.getShowDeprecatedItems().equalsIgnoreCase("true"))) { return true; } return false; }
168169170171172173174175176177178179
* 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()); } }
11371138113911401141114211431144114511461147
* attributes of a config bean */ public static boolean canShowDeprecatedItems(ServiceLocator habitat) { RestConfig rg = getRestConfig(habitat); if ((rg != null) && (rg.getShowDeprecatedItems().equalsIgnoreCase("true"))) { return true; } return false; }
561562563564565566567568569570571572573
557558559560561562563564565566567568569
11221123112411251126112711281129113011311132
11211122112311241125112611271128112911301131