org.apache.wicket.jmx
Interface MarkupSettingsMBean

All Known Implementing Classes:
MarkupSettings

public interface MarkupSettingsMBean

Markup settings.

Author:
eelcohillenius

Method Summary
 boolean getAutomaticLinking()
          If true, automatic link resolution is enabled.
 boolean getCompressWhitespace()
           
 java.lang.String getDefaultAfterDisabledLink()
           
 java.lang.String getDefaultBeforeDisabledLink()
           
 java.lang.String getDefaultMarkupEncoding()
           
 java.lang.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(java.lang.String defaultAfterDisabledLink)
           
 void setDefaultBeforeDisabledLink(java.lang.String defaultBeforeDisabledLink)
           
 void setDefaultMarkupEncoding(java.lang.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)
           
 

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:
IMarkupSettings.setCompressWhitespace(boolean)

getDefaultAfterDisabledLink

java.lang.String getDefaultAfterDisabledLink()
Returns:
Returns the defaultAfterDisabledLink.

getDefaultBeforeDisabledLink

java.lang.String getDefaultBeforeDisabledLink()
Returns:
Returns the defaultBeforeDisabledLink.

getDefaultMarkupEncoding

java.lang.String getDefaultMarkupEncoding()
Returns:
Returns default encoding of markup files. If null, the operating system provided encoding will be used.
Since:
1.1

getMarkupParserFactory

java.lang.String getMarkupParserFactory()
Returns:
markup parser factory

getStripComments

boolean getStripComments()
Returns:
Returns the stripComments.
See Also:
IMarkupSettings.setStripComments(boolean)

getStripWicketTags

boolean getStripWicketTags()
Gets whether to remove wicket tags from the output.

Returns:
whether to remove wicket tags from the output

getStripXmlDeclarationFromOutput

boolean getStripXmlDeclarationFromOutput()
Returns:
if true, xml declaration will be removed.

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.

setDefaultAfterDisabledLink

void setDefaultAfterDisabledLink(java.lang.String defaultAfterDisabledLink)
Parameters:
defaultAfterDisabledLink - The defaultAfterDisabledLink to set.

setDefaultBeforeDisabledLink

void setDefaultBeforeDisabledLink(java.lang.String defaultBeforeDisabledLink)
Parameters:
defaultBeforeDisabledLink - The defaultBeforeDisabledLink to set.

setDefaultMarkupEncoding

void setDefaultMarkupEncoding(java.lang.String encoding)
Set default encoding for markup files. If null, the encoding provided by the operating system will be used.

Parameters:
encoding -

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

setStripXmlDeclarationFromOutput

void setStripXmlDeclarationFromOutput(boolean strip)
Parameters:
strip - if true, xml declaration will be stripped from output


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