Package org.apache.felix.webconsole
Interface ConfigurationPrinter
-
- All Known Subinterfaces:
ModeAwareConfigurationPrinter
@Deprecated(since="2021-04-30") public interface ConfigurationPrinterDeprecated.This has been deprecated. Use the org.apache.felix.status API instead.TheConfigurationPrinteris a service interface to be used by providers which want to hook into the display of the current configuration of the OSGi framework. A configuration printer is currently used in three modes: displayed in a tab of the configuration web console plugin, included in a downloadable zip of the configuration or a downloadable txt file. With theWebConsoleConstants.CONFIG_PRINTER_MODESproperty this service can specify when it should be included. The default mode isMODE_ALWAYS.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMODE_ALWAYSDeprecated.The default mode - this printer is used in the web console and the zip.static java.lang.StringMODE_TXTDeprecated.The txt mode - this printer is used in the txt.static java.lang.StringMODE_WEBDeprecated.The web mode - this printer is used in the web console.static java.lang.StringMODE_ZIPDeprecated.The zip mode - this printer is used in the zip.static java.lang.StringPROPERTY_MODESDeprecated.static java.lang.StringSERVICEDeprecated.The service name under which services of this class must be registered to be picked for inclusion in the configuration report.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetTitle()Deprecated.Returns a human readable title string to be placed in front of the configuration report generated by theprintConfiguration(PrintWriter)method.voidprintConfiguration(java.io.PrintWriter printWriter)Deprecated.Prints the configuration report to the givenprintWriter.
-
-
-
Field Detail
-
SERVICE
static final java.lang.String SERVICE
Deprecated.The service name under which services of this class must be registered to be picked for inclusion in the configuration report.
-
MODE_ALWAYS
static final java.lang.String MODE_ALWAYS
Deprecated.The default mode - this printer is used in the web console and the zip.- Since:
- 3.0
- See Also:
- Constant Field Values
-
MODE_WEB
static final java.lang.String MODE_WEB
Deprecated.The web mode - this printer is used in the web console.Output of the configuration printer is HTML-escaped unless the
WebConsoleConstants.CONFIG_PRINTER_WEB_UNESCAPEDservice registration property is set totrue.- Since:
- 3.0
- See Also:
- Constant Field Values
-
MODE_ZIP
static final java.lang.String MODE_ZIP
Deprecated.The zip mode - this printer is used in the zip.- Since:
- 3.0
- See Also:
- Constant Field Values
-
MODE_TXT
static final java.lang.String MODE_TXT
Deprecated.The txt mode - this printer is used in the txt.- Since:
- 3.0
- See Also:
- Constant Field Values
-
PROPERTY_MODES
static final java.lang.String PROPERTY_MODES
Deprecated.The optional service property specifying the modes of the printer. If this property is missing or contains an unknown value, the defaultMODE_ALWAYSis used. The value of this property is either a single string or an array of strings.- Since:
- 3.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTitle
java.lang.String getTitle()
Deprecated.Returns a human readable title string to be placed in front of the configuration report generated by theprintConfiguration(PrintWriter)method.- Returns:
- the configuration title
-
printConfiguration
void printConfiguration(java.io.PrintWriter printWriter)
Deprecated.Prints the configuration report to the givenprintWriter. Implementations are free to print whatever information they deem useful.- Parameters:
printWriter- where to write the configuration data. It might be flushed, but must not be closed.
-
-