java.lang.Object
org.apache.wicket.jmx.wrapper.MarkupSettings
- All Implemented Interfaces:
MarkupSettingsMBean
Exposes Application related functionality for JMX.
- Author:
- eelcohillenius
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
If true, automatic link resolution is enabled.boolean
boolean
boolean
Gets whether to remove wicket tags from the output.void
setAutomaticLinking
(boolean automaticLinking) Application default for automatic link resolution.void
setCompressWhitespace
(boolean compressWhitespace) Turns on whitespace compression.void
setDefaultMarkupEncoding
(String encoding) Set default encoding for markup files.void
setStripComments
(boolean stripComments) Enables stripping of markup comments denoted in markup by HTML comment tagging.void
setStripWicketTags
(boolean stripWicketTags) Sets whether to remove wicket tags from the output.
-
Constructor Details
-
MarkupSettings
Create.- Parameters:
application
-
-
-
Method Details
-
getAutomaticLinking
Description copied from interface:MarkupSettingsMBean
If true, automatic link resolution is enabled. Disabled by default.- Specified by:
getAutomaticLinking
in interfaceMarkupSettingsMBean
- Returns:
- Returns the automaticLinking.
- See Also:
-
getCompressWhitespace
- Specified by:
getCompressWhitespace
in interfaceMarkupSettingsMBean
- Returns:
- Returns the compressWhitespace.
- See Also:
-
getDefaultMarkupEncoding
- Specified by:
getDefaultMarkupEncoding
in interfaceMarkupSettingsMBean
- Returns:
- Returns default encoding of markup files. If null, the operating system provided encoding will be used.
- See Also:
-
getStripComments
- Specified by:
getStripComments
in interfaceMarkupSettingsMBean
- Returns:
- Returns the stripComments.
- See Also:
-
getStripWicketTags
Description copied from interface:MarkupSettingsMBean
Gets whether to remove wicket tags from the output.- Specified by:
getStripWicketTags
in interfaceMarkupSettingsMBean
- Returns:
- whether to remove wicket tags from the output
- See Also:
-
setAutomaticLinking
Description copied from interface:MarkupSettingsMBean
Application default for automatic link resolution. Please- Specified by:
setAutomaticLinking
in interfaceMarkupSettingsMBean
- Parameters:
automaticLinking
- The automaticLinking to set.- See Also:
-
setCompressWhitespace
Description copied from interface:MarkupSettingsMBean
Turns on whitespace compression. Multiple occurrences of space/tab characters will be compressed to a single space. Multiple line breaks newline/carriage-return will also be compressed to a single newline.Compression is currently not HTML aware and so it may be possible for whitespace compression to break pages. For this reason, whitespace compression is off by default and you should test your application throroughly after turning whitespace compression on.
Spaces are removed from markup at markup load time and there should be no effect on page rendering speed. In fact, your pages should render faster with whitespace compression enabled.
- Specified by:
setCompressWhitespace
in interfaceMarkupSettingsMBean
- Parameters:
compressWhitespace
- The compressWhitespace to set.- See Also:
-
setDefaultMarkupEncoding
Description copied from interface:MarkupSettingsMBean
Set default encoding for markup files. If null, the encoding provided by the operating system will be used.- Specified by:
setDefaultMarkupEncoding
in interfaceMarkupSettingsMBean
- Throws:
UnsupportedEncodingException
- See Also:
-
setStripComments
Description copied from interface:MarkupSettingsMBean
Enables stripping of markup comments denoted in markup by HTML comment tagging.- Specified by:
setStripComments
in interfaceMarkupSettingsMBean
- Parameters:
stripComments
- True to strip markup comments from rendered pages- See Also:
-
setStripWicketTags
Description copied from interface:MarkupSettingsMBean
Sets whether to remove wicket tags from the output.- Specified by:
setStripWicketTags
in interfaceMarkupSettingsMBean
- Parameters:
stripWicketTags
- whether to remove wicket tags from the output- See Also:
-