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>
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.charset.Charset
charset
private java.lang.String
contentType
private java.lang.String
fontName
private HtmlLayout.FontSize
fontSize
private boolean
locationInfo
private java.lang.String
title
-
Constructor Summary
Constructors Modifier Constructor Description private
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HtmlLayout
build()
Builds the object after all configuration has been set.HtmlLayout.Builder
withCharset(java.nio.charset.Charset charset)
HtmlLayout.Builder
withContentType(java.lang.String contentType)
HtmlLayout.Builder
withFontName(java.lang.String fontName)
HtmlLayout.Builder
withFontSize(HtmlLayout.FontSize fontSize)
HtmlLayout.Builder
withLocationInfo(boolean locationInfo)
HtmlLayout.Builder
withTitle(java.lang.String title)
-
-
-
Field Detail
-
locationInfo
@PluginBuilderAttribute private boolean locationInfo
-
title
@PluginBuilderAttribute private java.lang.String title
-
contentType
@PluginBuilderAttribute private java.lang.String contentType
-
charset
@PluginBuilderAttribute private java.nio.charset.Charset charset
-
fontSize
@PluginBuilderAttribute private HtmlLayout.FontSize fontSize
-
fontName
@PluginBuilderAttribute private java.lang.String fontName
-
-
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:Builder
Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
build
in interfaceBuilder<HtmlLayout>
- Returns:
- the configured instance.
-
-