Interface HtmlComponentSerializer
- All Superinterfaces:
ComponentEncoder<Component, String>
@DefaultQualifier(NonNull.class)
public interface HtmlComponentSerializer
extends ComponentEncoder<Component, String>
Safely encodes
Components as HTML text.
Mostly useful for marker tooltips.
- Since:
- 1.2.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic HtmlComponentSerializerwithFlattener(ComponentFlattener flattener) Create a newHtmlComponentSerializerusing the providedComponentFlattener.Methods inherited from interface ComponentEncoder
serialize, serializeOr, serializeOrNull
-
Method Details
-
withFlattener
Create a newHtmlComponentSerializerusing the providedComponentFlattener.- Parameters:
flattener- component flattener- Returns:
- serializer
-