org.apache.wicket.jmx
Class MarkupSettings

java.lang.Object
  extended by org.apache.wicket.jmx.MarkupSettings
All Implemented Interfaces:
MarkupSettingsMBean

public class MarkupSettings
extends Object
implements MarkupSettingsMBean

Exposes Application related functionality for JMX.

Author:
eelcohillenius

Constructor Summary
MarkupSettings(Application application)
          Create.
 
Method Summary
 boolean getAutomaticLinking()
          If true, automatic link resolution is enabled.
 boolean getCompressWhitespace()
           
 String getDefaultAfterDisabledLink()
           
 String getDefaultBeforeDisabledLink()
           
 String getDefaultMarkupEncoding()
           
 String getMarkupParserFactory()
           
 boolean getStripComments()
           
 boolean getStripWicketTags()
          Gets whether to remove wicket tags from the output.
 boolean getStripXmlDeclarationFromOutput()
           
 void setAutomaticLinking(boolean automaticLinking)
          Application default for automatic link resolution.
 void setCompressWhitespace(boolean compressWhitespace)
          Turns on whitespace compression.
 void setDefaultAfterDisabledLink(String defaultAfterDisabledLink)
           
 void setDefaultBeforeDisabledLink(String defaultBeforeDisabledLink)
           
 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.
 void setStripXmlDeclarationFromOutput(boolean strip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkupSettings

public MarkupSettings(Application application)
Create.

Parameters:
application -
Method Detail

getAutomaticLinking

public boolean getAutomaticLinking()
Description copied from interface: MarkupSettingsMBean
If true, automatic link resolution is enabled. Disabled by default.

Specified by:
getAutomaticLinking in interface MarkupSettingsMBean
Returns:
Returns the automaticLinking.
See Also:
MarkupSettingsMBean.getAutomaticLinking()

getCompressWhitespace

public boolean getCompressWhitespace()
Specified by:
getCompressWhitespace in interface MarkupSettingsMBean
Returns:
Returns the compressWhitespace.
See Also:
MarkupSettingsMBean.getCompressWhitespace()

getDefaultAfterDisabledLink

public String getDefaultAfterDisabledLink()
Specified by:
getDefaultAfterDisabledLink in interface MarkupSettingsMBean
Returns:
Returns the defaultAfterDisabledLink.
See Also:
MarkupSettingsMBean.getDefaultAfterDisabledLink()

getDefaultBeforeDisabledLink

public String getDefaultBeforeDisabledLink()
Specified by:
getDefaultBeforeDisabledLink in interface MarkupSettingsMBean
Returns:
Returns the defaultBeforeDisabledLink.
See Also:
MarkupSettingsMBean.getDefaultBeforeDisabledLink()

getDefaultMarkupEncoding

public String getDefaultMarkupEncoding()
Specified by:
getDefaultMarkupEncoding in interface MarkupSettingsMBean
Returns:
Returns default encoding of markup files. If null, the operating system provided encoding will be used.
See Also:
MarkupSettingsMBean.getDefaultMarkupEncoding()

getMarkupParserFactory

public String getMarkupParserFactory()
Specified by:
getMarkupParserFactory in interface MarkupSettingsMBean
Returns:
markup parser factory
See Also:
MarkupSettingsMBean.getMarkupParserFactory()

getStripComments

public boolean getStripComments()
Specified by:
getStripComments in interface MarkupSettingsMBean
Returns:
Returns the stripComments.
See Also:
MarkupSettingsMBean.getStripComments()

getStripWicketTags

public boolean getStripWicketTags()
Description copied from interface: MarkupSettingsMBean
Gets whether to remove wicket tags from the output.

Specified by:
getStripWicketTags in interface MarkupSettingsMBean
Returns:
whether to remove wicket tags from the output
See Also:
MarkupSettingsMBean.getStripWicketTags()

getStripXmlDeclarationFromOutput

public boolean getStripXmlDeclarationFromOutput()
Specified by:
getStripXmlDeclarationFromOutput in interface MarkupSettingsMBean
Returns:
if true, xml declaration will be removed.
See Also:
MarkupSettingsMBean.getStripXmlDeclarationFromOutput()

setAutomaticLinking

public void setAutomaticLinking(boolean automaticLinking)
Description copied from interface: MarkupSettingsMBean
Application default for automatic link resolution. Please

Specified by:
setAutomaticLinking in interface MarkupSettingsMBean
Parameters:
automaticLinking - The automaticLinking to set.
See Also:
MarkupSettingsMBean.setAutomaticLinking(boolean)

setCompressWhitespace

public void setCompressWhitespace(boolean compressWhitespace)
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 interface MarkupSettingsMBean
Parameters:
compressWhitespace - The compressWhitespace to set.
See Also:
MarkupSettingsMBean.setCompressWhitespace(boolean)

setDefaultAfterDisabledLink

public void setDefaultAfterDisabledLink(String defaultAfterDisabledLink)
Specified by:
setDefaultAfterDisabledLink in interface MarkupSettingsMBean
Parameters:
defaultAfterDisabledLink - The defaultAfterDisabledLink to set.
See Also:
MarkupSettingsMBean.setDefaultAfterDisabledLink(java.lang.String)

setDefaultBeforeDisabledLink

public void setDefaultBeforeDisabledLink(String defaultBeforeDisabledLink)
Specified by:
setDefaultBeforeDisabledLink in interface MarkupSettingsMBean
Parameters:
defaultBeforeDisabledLink - The defaultBeforeDisabledLink to set.
See Also:
MarkupSettingsMBean.setDefaultBeforeDisabledLink(java.lang.String)

setDefaultMarkupEncoding

public void setDefaultMarkupEncoding(String encoding)
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 interface MarkupSettingsMBean
See Also:
MarkupSettingsMBean.setDefaultMarkupEncoding(java.lang.String)

setStripComments

public void setStripComments(boolean stripComments)
Description copied from interface: MarkupSettingsMBean
Enables stripping of markup comments denoted in markup by HTML comment tagging.

Specified by:
setStripComments in interface MarkupSettingsMBean
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: MarkupSettingsMBean
Sets whether to remove wicket tags from the output.

Specified by:
setStripWicketTags in interface MarkupSettingsMBean
Parameters:
stripWicketTags - whether to remove wicket tags from the output
See Also:
MarkupSettingsMBean.setStripWicketTags(boolean)

setStripXmlDeclarationFromOutput

public void setStripXmlDeclarationFromOutput(boolean strip)
Specified by:
setStripXmlDeclarationFromOutput in interface MarkupSettingsMBean
Parameters:
strip - if true, xml declaration will be stripped from output
See Also:
MarkupSettingsMBean.setStripXmlDeclarationFromOutput(boolean)


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.