Package org.apache.juneau.marshall.html
Class HtmlSerializerSession.Builder<SELF extends HtmlSerializerSession.Builder<SELF>>
java.lang.Object
org.apache.juneau.marshall.ContextSession.Builder<SELF>
org.apache.juneau.marshall.MarshallingSession.Builder<SELF>
org.apache.juneau.marshall.MarshallingTraverseSession.Builder<SELF>
org.apache.juneau.marshall.serializer.SerializerSession.Builder<SELF>
org.apache.juneau.marshall.serializer.WriterSerializerSession.Builder<SELF>
org.apache.juneau.marshall.xml.XmlSerializerSession.Builder<SELF>
org.apache.juneau.marshall.html.HtmlSerializerSession.Builder<SELF>
- Direct Known Subclasses:
HtmlSchemaSerializerSession.Builder,HtmlSerializerSession.DefaultBuilder,HtmlStrippedDocSerializerSession.Builder
- Enclosing class:
- HtmlSerializerSession
public abstract static class HtmlSerializerSession.Builder<SELF extends HtmlSerializerSession.Builder<SELF>>
extends XmlSerializerSession.Builder<SELF>
Builder class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddKeyValueTableHeaders(boolean value) Add key/value headers on bean/map tables.build()Build the object.detectLabelParameters(boolean value) Look for link labels in URIs.detectLinksInStrings(boolean value) Look for URLs in Strings.labelParameter(String value) The label parameter name.Adds a property to this session.uriAnchorText(AnchorText value) The anchor text to use for URL objects.Methods inherited from class org.apache.juneau.marshall.xml.XmlSerializerSession.Builder
addNamespaceUrisToRoot, autoDetectNamespaces, defaultNamespace, enableNamespaces, textNodeDelimiterMethods inherited from class org.apache.juneau.marshall.serializer.WriterSerializerSession.Builder
maxIndent, quoteChar, streamCharset, useWhitespaceMethods inherited from class org.apache.juneau.marshall.serializer.SerializerSession.Builder
addBeanTypes, addRootType, javaMethod, keepNullProperties, nonDefault, resolver, schema, schemaDefault, sortCollections, sortMaps, trimEmptyCollections, trimEmptyMaps, trimStrings, uriContextMethods inherited from class org.apache.juneau.marshall.MarshallingTraverseSession.Builder
initialDepthMethods inherited from class org.apache.juneau.marshall.MarshallingSession.Builder
activeView, locale, mediaType, mediaTypeDefault, timeZone, timeZoneDefaultMethods inherited from class org.apache.juneau.marshall.ContextSession.Builder
apply, cvt, debug, properties, self, unmodifiable
-
Constructor Details
-
Builder
Constructor- Parameters:
ctx- The context creating this session.
Cannot benull .
-
-
Method Details
-
build
Description copied from class:MarshallingSession.BuilderBuild the object.- Overrides:
buildin classXmlSerializerSession.Builder<SELF extends HtmlSerializerSession.Builder<SELF>>- Returns:
- The built object.
-
addKeyValueTableHeaders
Add key/value headers on bean/map tables.- Parameters:
value- The new value for this setting.- Returns:
- This object.
-
detectLabelParameters
Look for link labels in URIs.- Parameters:
value- The new value for this setting.- Returns:
- This object.
-
detectLinksInStrings
Look for URLs in Strings.- Parameters:
value- The new value for this setting.- Returns:
- This object.
-
labelParameter
The label parameter name.- Parameters:
value- The new value for this setting.- Returns:
- This object.
-
uriAnchorText
The anchor text to use for URL objects.- Parameters:
value- The new value for this setting.- Returns:
- This object.
-
property
Description copied from class:ContextSession.BuilderAdds a property to this session.If the key matches a known session property (e.g.
"debug" or"ContextSession.debug" ), the value is converted viaBasicConverterand routed to the corresponding typed setter. Unknown keys are stored in the raw session properties map.- Overrides:
propertyin classXmlSerializerSession.Builder<SELF extends HtmlSerializerSession.Builder<SELF>>- Parameters:
key- The property key.
Cannot benull .value- The property value.
Can benull (resets typed properties to their default; removes raw properties).- Returns:
- This object.
-