Class HtmlLayout.Builder
- java.lang.Object
-
- org.apache.logging.log4j.core.layout.HtmlLayout.Builder
-
- All Implemented Interfaces:
Builder<HtmlLayout>
- Enclosing class:
- HtmlLayout
public static class HtmlLayout.Builder extends java.lang.Object implements Builder<HtmlLayout>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HtmlLayoutbuild()Builds the object after all configuration has been set.HtmlLayout.BuilderwithCharset(java.nio.charset.Charset charset)HtmlLayout.BuilderwithContentType(java.lang.String contentType)HtmlLayout.BuilderwithFontName(java.lang.String fontName)HtmlLayout.BuilderwithFontSize(HtmlLayout.FontSize fontSize)HtmlLayout.BuilderwithLocationInfo(boolean locationInfo)HtmlLayout.BuilderwithTitle(java.lang.String title)
-
-
-
Method Detail
-
withLocationInfo
public HtmlLayout.Builder withLocationInfo(boolean locationInfo)
-
withTitle
public HtmlLayout.Builder withTitle(java.lang.String title)
-
withContentType
public HtmlLayout.Builder withContentType(java.lang.String contentType)
-
withCharset
public HtmlLayout.Builder withCharset(java.nio.charset.Charset charset)
-
withFontSize
public HtmlLayout.Builder withFontSize(HtmlLayout.FontSize fontSize)
-
withFontName
public HtmlLayout.Builder withFontName(java.lang.String fontName)
-
build
public HtmlLayout build()
Description copied from interface:BuilderBuilds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
buildin interfaceBuilder<HtmlLayout>- Returns:
- the configured instance.
-
-