Package org.apache.wicket.jmx
Interface MarkupSettingsMBean
-
- All Known Implementing Classes:
MarkupSettings
public interface MarkupSettingsMBean
Markup settings.- Author:
- eelcohillenius
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getAutomaticLinking()
If true, automatic link resolution is enabled.boolean
getCompressWhitespace()
String
getDefaultMarkupEncoding()
boolean
getStripComments()
boolean
getStripWicketTags()
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.
-
-
-
Method Detail
-
getAutomaticLinking
boolean getAutomaticLinking()
If true, automatic link resolution is enabled. Disabled by default.- Returns:
- Returns the automaticLinking.
- See Also:
AutoLinkResolver
,WicketLinkTagHandler
-
getCompressWhitespace
boolean getCompressWhitespace()
- Returns:
- Returns the compressWhitespace.
- See Also:
MarkupSettings.setCompressWhitespace(boolean)
-
getDefaultMarkupEncoding
String getDefaultMarkupEncoding()
- Returns:
- Returns default encoding of markup files. If null, the operating system provided encoding will be used.
- Since:
- 1.1
-
getStripComments
boolean getStripComments()
- Returns:
- Returns the stripComments.
- See Also:
MarkupSettings.setStripComments(boolean)
-
getStripWicketTags
boolean getStripWicketTags()
Gets whether to remove wicket tags from the output.- Returns:
- whether to remove wicket tags from the output
-
setAutomaticLinking
void setAutomaticLinking(boolean automaticLinking)
Application default for automatic link resolution. Please- Parameters:
automaticLinking
- The automaticLinking to set.- See Also:
and
,for more details.
-
setCompressWhitespace
void setCompressWhitespace(boolean compressWhitespace)
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.
- Parameters:
compressWhitespace
- The compressWhitespace to set.
-
setDefaultMarkupEncoding
void setDefaultMarkupEncoding(String encoding) throws UnsupportedEncodingException
Set default encoding for markup files. If null, the encoding provided by the operating system will be used.- Parameters:
encoding
-- Throws:
UnsupportedEncodingException
- if encoding is not supported
-
setStripComments
void setStripComments(boolean stripComments)
Enables stripping of markup comments denoted in markup by HTML comment tagging.- Parameters:
stripComments
- True to strip markup comments from rendered pages
-
setStripWicketTags
void setStripWicketTags(boolean stripWicketTags)
Sets whether to remove wicket tags from the output.- Parameters:
stripWicketTags
- whether to remove wicket tags from the output
-
-