public class MarkupSettings extends Object implements MarkupSettingsMBean
Constructor and Description |
---|
MarkupSettings(Application application)
Create.
|
Modifier and Type | Method and 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.
|
public MarkupSettings(Application application)
application
- public boolean getAutomaticLinking()
MarkupSettingsMBean
getAutomaticLinking
in interface MarkupSettingsMBean
MarkupSettingsMBean.getAutomaticLinking()
public boolean getCompressWhitespace()
getCompressWhitespace
in interface MarkupSettingsMBean
MarkupSettingsMBean.getCompressWhitespace()
public String getDefaultMarkupEncoding()
getDefaultMarkupEncoding
in interface MarkupSettingsMBean
MarkupSettingsMBean.getDefaultMarkupEncoding()
public boolean getStripComments()
getStripComments
in interface MarkupSettingsMBean
MarkupSettingsMBean.getStripComments()
public boolean getStripWicketTags()
MarkupSettingsMBean
getStripWicketTags
in interface MarkupSettingsMBean
MarkupSettingsMBean.getStripWicketTags()
public void setAutomaticLinking(boolean automaticLinking)
MarkupSettingsMBean
setAutomaticLinking
in interface MarkupSettingsMBean
automaticLinking
- The automaticLinking to set.MarkupSettingsMBean.setAutomaticLinking(boolean)
public void setCompressWhitespace(boolean compressWhitespace)
MarkupSettingsMBean
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.
setCompressWhitespace
in interface MarkupSettingsMBean
compressWhitespace
- The compressWhitespace to set.MarkupSettingsMBean.setCompressWhitespace(boolean)
public void setDefaultMarkupEncoding(String encoding) throws UnsupportedEncodingException
MarkupSettingsMBean
setDefaultMarkupEncoding
in interface MarkupSettingsMBean
UnsupportedEncodingException
MarkupSettingsMBean.setDefaultMarkupEncoding(java.lang.String)
public void setStripComments(boolean stripComments)
MarkupSettingsMBean
setStripComments
in interface MarkupSettingsMBean
stripComments
- True to strip markup comments from rendered pagesMarkupSettingsMBean.setStripComments(boolean)
public void setStripWicketTags(boolean stripWicketTags)
MarkupSettingsMBean
setStripWicketTags
in interface MarkupSettingsMBean
stripWicketTags
- whether to remove wicket tags from the outputMarkupSettingsMBean.setStripWicketTags(boolean)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.