|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for markup related settings.
compressWhitespace (defaults to false) - Causes pages to render with redundant whitespace removed. Whitespace stripping is not HTML or JavaScript savvy and can conceivably break pages, but should provide significant performance improvements.
stripComments (defaults to false) - Set to true to strip HTML comments during markup loading
| 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()
|
IMarkupCache |
getMarkupCache()
The markup cache also loads the markup if not yet available in the cache. |
IMarkupParserFactory |
getMarkupParserFactory()
|
boolean |
getStripComments()
|
boolean |
getStripWicketTags()
Gets whether to remove wicket tags from the output. |
boolean |
getStripXmlDeclarationFromOutput()
|
boolean |
getThrowExceptionOnMissingXmlDeclaration()
|
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 |
setMarkupCache(IMarkupCache markupCache)
Sets a new markup cache which will also be used to load markup if not yet available in the cache. |
void |
setMarkupParserFactory(IMarkupParserFactory factory)
Sets the markup parser factory that will be used to generate parsers for markup. |
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)
|
void |
setThrowExceptionOnMissingXmlDeclaration(boolean throwException)
If true, an exception is thrown if the markup file does not contain a xml declaration |
| Method Detail |
public boolean getAutomaticLinking()
AutoLinkResolver,
WicketLinkTagHandlerpublic boolean getCompressWhitespace()
setCompressWhitespace(boolean)public java.lang.String getDefaultAfterDisabledLink()
public java.lang.String getDefaultBeforeDisabledLink()
public java.lang.String getDefaultMarkupEncoding()
public IMarkupParserFactory getMarkupParserFactory()
public IMarkupCache getMarkupCache()
public boolean getStripComments()
setStripComments(boolean)public boolean getStripWicketTags()
public boolean getStripXmlDeclarationFromOutput()
public boolean getThrowExceptionOnMissingXmlDeclaration()
public void setAutomaticLinking(boolean automaticLinking)
automaticLinking - The automaticLinking to set.and,
for more details.public void setCompressWhitespace(boolean compressWhitespace)
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 thoroughly 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.
compressWhitespace - The compressWhitespace to set.public void setDefaultAfterDisabledLink(java.lang.String defaultAfterDisabledLink)
defaultAfterDisabledLink - The defaultAfterDisabledLink to set.public void setDefaultBeforeDisabledLink(java.lang.String defaultBeforeDisabledLink)
defaultBeforeDisabledLink - The defaultBeforeDisabledLink to set.public void setDefaultMarkupEncoding(java.lang.String encoding)
encoding - public void setMarkupParserFactory(IMarkupParserFactory factory)
MarkupParserFactory will be used.
factory - new factorypublic void setMarkupCache(IMarkupCache markupCache)
markupCache - new markup cachepublic void setStripComments(boolean stripComments)
stripComments - True to strip markup comments from rendered pagespublic void setStripWicketTags(boolean stripWicketTags)
stripWicketTags - whether to remove wicket tags from the outputpublic void setStripXmlDeclarationFromOutput(boolean strip)
strip - if true, xml declaration will be stripped from outputpublic void setThrowExceptionOnMissingXmlDeclaration(boolean throwException)
throwException -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||