Package org.apache.wicket.jmx.wrapper
Class MarkupSettings
- java.lang.Object
-
- org.apache.wicket.jmx.wrapper.MarkupSettings
-
- All Implemented Interfaces:
MarkupSettingsMBean
public class MarkupSettings extends Object implements MarkupSettingsMBean
Exposes Application related functionality for JMX.- Author:
- eelcohillenius
-
-
Constructor Summary
Constructors Constructor Description MarkupSettings(org.apache.wicket.Application application)Create.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAutomaticLinking()If true, automatic link resolution is enabled.booleangetCompressWhitespace()StringgetDefaultMarkupEncoding()booleangetStripComments()booleangetStripWicketTags()Gets whether to remove wicket tags from the output.voidsetAutomaticLinking(boolean automaticLinking)Application default for automatic link resolution.voidsetCompressWhitespace(boolean compressWhitespace)Turns on whitespace compression.voidsetDefaultMarkupEncoding(String encoding)Set default encoding for markup files.voidsetStripComments(boolean stripComments)Enables stripping of markup comments denoted in markup by HTML comment tagging.voidsetStripWicketTags(boolean stripWicketTags)Sets whether to remove wicket tags from the output.
-
-
-
Constructor Detail
-
MarkupSettings
public MarkupSettings(org.apache.wicket.Application application)
Create.- Parameters:
application-
-
-
Method Detail
-
getAutomaticLinking
public boolean getAutomaticLinking()
Description copied from interface:MarkupSettingsMBeanIf true, automatic link resolution is enabled. Disabled by default.- Specified by:
getAutomaticLinkingin interfaceMarkupSettingsMBean- Returns:
- Returns the automaticLinking.
- See Also:
MarkupSettingsMBean.getAutomaticLinking()
-
getCompressWhitespace
public boolean getCompressWhitespace()
- Specified by:
getCompressWhitespacein interfaceMarkupSettingsMBean- Returns:
- Returns the compressWhitespace.
- See Also:
MarkupSettingsMBean.getCompressWhitespace()
-
getDefaultMarkupEncoding
public String getDefaultMarkupEncoding()
- Specified by:
getDefaultMarkupEncodingin interfaceMarkupSettingsMBean- Returns:
- Returns default encoding of markup files. If null, the operating system provided encoding will be used.
- See Also:
MarkupSettingsMBean.getDefaultMarkupEncoding()
-
getStripComments
public boolean getStripComments()
- Specified by:
getStripCommentsin interfaceMarkupSettingsMBean- Returns:
- Returns the stripComments.
- See Also:
MarkupSettingsMBean.getStripComments()
-
getStripWicketTags
public boolean getStripWicketTags()
Description copied from interface:MarkupSettingsMBeanGets whether to remove wicket tags from the output.- Specified by:
getStripWicketTagsin interfaceMarkupSettingsMBean- Returns:
- whether to remove wicket tags from the output
- See Also:
MarkupSettingsMBean.getStripWicketTags()
-
setAutomaticLinking
public void setAutomaticLinking(boolean automaticLinking)
Description copied from interface:MarkupSettingsMBeanApplication default for automatic link resolution. Please- Specified by:
setAutomaticLinkingin interfaceMarkupSettingsMBean- Parameters:
automaticLinking- The automaticLinking to set.- See Also:
MarkupSettingsMBean.setAutomaticLinking(boolean)
-
setCompressWhitespace
public void setCompressWhitespace(boolean compressWhitespace)
Description copied from interface:MarkupSettingsMBeanTurns 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:
setCompressWhitespacein interfaceMarkupSettingsMBean- Parameters:
compressWhitespace- The compressWhitespace to set.- See Also:
MarkupSettingsMBean.setCompressWhitespace(boolean)
-
setDefaultMarkupEncoding
public void setDefaultMarkupEncoding(String encoding) throws UnsupportedEncodingException
Description copied from interface:MarkupSettingsMBeanSet default encoding for markup files. If null, the encoding provided by the operating system will be used.- Specified by:
setDefaultMarkupEncodingin interfaceMarkupSettingsMBean- Throws:
UnsupportedEncodingException- See Also:
MarkupSettingsMBean.setDefaultMarkupEncoding(java.lang.String)
-
setStripComments
public void setStripComments(boolean stripComments)
Description copied from interface:MarkupSettingsMBeanEnables stripping of markup comments denoted in markup by HTML comment tagging.- Specified by:
setStripCommentsin interfaceMarkupSettingsMBean- Parameters:
stripComments- True to strip markup comments from rendered pages- See Also:
MarkupSettingsMBean.setStripComments(boolean)
-
setStripWicketTags
public void setStripWicketTags(boolean stripWicketTags)
Description copied from interface:MarkupSettingsMBeanSets whether to remove wicket tags from the output.- Specified by:
setStripWicketTagsin interfaceMarkupSettingsMBean- Parameters:
stripWicketTags- whether to remove wicket tags from the output- See Also:
MarkupSettingsMBean.setStripWicketTags(boolean)
-
-