public interface HtmlConfig extends XmlConfig
| Modifier and Type | Method and Description |
|---|---|
default DefaultHtmlConfig |
cloneForAjax()
Clone the config for an AJAX processing
|
@NotNull String |
getContentType()
Get a content type where a recommended value is
"text/html" |
@NotNull CharSequence[] |
getCssLinks()
CSS links of a HTML page
|
@NotNull ApiInjector |
getHeaderInjector() |
@NotNull Optional<CharSequence> |
getLanguage()
Language of a HTML page
|
@Nullable CharSequence |
getRawHeaderText()
Deprecated.
Use method
getHeaderInjector() |
String |
getRootElementName()
A name of root element
|
@NotNull CharSequence |
getTitle()
Title is a required element by HTML 5
|
boolean |
isDocumentObjectModel()
Build a real model or a plain writer with a recommended value
false |
boolean |
isHtmlHeaderRequest()
A request to generate a minimal HTML header
|
static DefaultHtmlConfig |
of(@NotNull HtmlConfig htmlConfig)
Clone config form another
|
static @NotNull DefaultHtmlConfig |
ofDefault()
Create a new default config
|
static @NotNull DefaultHtmlConfig |
ofElement(@Nullable String rootElementName,
boolean enabled)
No HTML header is generated, no Doctype and no new lines
|
static @NotNull DefaultHtmlConfig |
ofElementName(@Nullable String rootElementName)
No HTML header is generated, no Doctype and no new lines
|
static @NotNull DefaultHtmlConfig |
ofEmptyElement()
Create a configuration for an AJAX response.
|
static DefaultHtmlConfig |
ofTitle(@NotNull String title)
Create a new configuration with a nice format by an HTML title.
|
getDefaultValue, getDoctype, getFirstLevel, getFormatter, getCharset, getIndentation, getNewLine, isCacheAllowed, ofDoctype@NotNull @NotNull CharSequence getTitle()
@NotNull @NotNull CharSequence[] getCssLinks()
@NotNull @NotNull Optional<CharSequence> getLanguage()
@NotNull @NotNull String getContentType()
"text/html"boolean isDocumentObjectModel()
falseboolean isHtmlHeaderRequest()
@Deprecated @Nullable @Nullable CharSequence getRawHeaderText()
getHeaderInjector()@NotNull @NotNull ApiInjector getHeaderInjector()
String getRootElementName()
default DefaultHtmlConfig cloneForAjax()
@NotNull static @NotNull DefaultHtmlConfig ofDefault()
@NotNull static @NotNull DefaultHtmlConfig ofElementName(@Nullable @Nullable String rootElementName)
rootElementName - Element name cannot contain special HTML characters. An undefined value ignores the creation of the root element.@NotNull static @NotNull DefaultHtmlConfig ofElement(@Nullable @Nullable String rootElementName, boolean enabled)
rootElementName - Element name cannot contain special HTML characters.enabled - Disabled root element ignores the creation of the root element.@NotNull static @NotNull DefaultHtmlConfig ofEmptyElement()
static DefaultHtmlConfig of(@NotNull @NotNull HtmlConfig htmlConfig)
static DefaultHtmlConfig ofTitle(@NotNull @NotNull String title)
title - If the title is null then create an EMPTY element.Copyright 2015, Pavel Ponec