public class HtmlDocSerializerSession extends HtmlStrippedDocSerializerSession
HtmlSerializer
and its subclasses.
See Serializer
for details.
This class is NOT thread safe. It is meant to be discarded after one-time use.
indent
Modifier | Constructor and Description |
---|---|
protected |
HtmlDocSerializerSession(HtmlDocSerializer ctx,
SerializerSessionArgs args)
Create a new session using properties specified in the context.
|
Modifier and Type | Method and Description |
---|---|
ObjectMap |
asMap()
Returns the properties defined on this bean context as a simple map for debugging purposes.
|
protected void |
doSerialize(SerializerPipe out,
Object o)
Serializes a POJO to the specified output stream or writer.
|
String[] |
getAside()
Returns the
HtmlDocSerializer.HTMLDOC_aside setting value in this context. |
String[] |
getFooter()
Returns the
HtmlDocSerializer.HTMLDOC_footer setting value in this context. |
String[] |
getHead()
Returns the
HtmlDocSerializer.HTMLDOC_head setting value in this context. |
String[] |
getHeader()
Returns the
HtmlDocSerializer.HTMLDOC_header setting value in this context. |
String[] |
getNav()
Returns the
HtmlDocSerializer.HTMLDOC_nav setting value in this context. |
String[] |
getNavLinks()
Returns the
HtmlDocSerializer.HTMLDOC_navlinks setting value in this context. |
String |
getNoResultsMessage()
Returns the
HtmlDocSerializer.HTMLDOC_noResultsMessage setting value in this context. |
Set<String> |
getScript()
Returns the
HtmlDocSerializer.HTMLDOC_script setting value in this context. |
Set<String> |
getStyle()
Returns the
HtmlDocSerializer.HTMLDOC_style setting value in this context. |
Set<String> |
getStylesheet()
Returns the
HtmlDocSerializer.HTMLDOC_stylesheet setting value in this context. |
HtmlDocTemplate |
getTemplate()
Returns the template to use for generating the HTML page.
|
boolean |
isNoWrap()
Returns the
HtmlDocSerializer.HTMLDOC_nowrap setting value in this context. |
void |
parentSerialize(Object out,
Object o)
Calls the parent
doSerialize(SerializerPipe, Object) method which invokes just the HTML serializer. |
getAnchorText, getHtmlWriter, isAddBeanTypeProperties, isAddKeyValueTableHeaders, isHtmlMode, isUri, serializeAnything
findNsfMappings, getXmlWriter, serializeAnything
isWriterSerializer, serialize
canIgnoreValue, createBeanTypeNameProperty, createPipe, generalize, getBeanTypeName, getExpectedRootType, getInitialDepth, getJavaMethod, getLastLocation, getListener, getListener, getMaxDepth, getMaxIndent, getQuoteChar, getResponseHeaders, getUriResolver, isDetectRecursions, isIgnoreRecursions, isSortCollections, isSortMaps, isTrimEmptyCollections, isTrimEmptyMaps, isTrimNulls, isTrimStrings, isUseWhitespace, onBeanGetterException, onError, pop, push, relativizeUri, resolveUri, serialize, setCurrentClass, setCurrentProperty, sort, sort, toList, toString, trim, willRecurse
_class, checkForWarnings, convertToMemberType, convertToMemberType, convertToType, convertToType, convertToType, getArgsClassMeta, getBeanMeta, getBeanRegistry, getBeanTypePropertyName, getClassMeta, getClassMeta, getClassMetaForObject, getLocale, getMediaType, getStringBuilder, getTimeZone, isBean, isBean, isDebug, isIgnoreUnknownBeanProperties, newBean, newBean, newBeanMap, newBeanMap, newInstance, newInstance, newInstanceFromOuter, object, returnStringBuilder, string, toArray, toBeanMap, toBeanMap
addToCache, addToCache, addWarning, getClassProperty, getFromCache, getInstanceArrayProperty, getInstanceProperty, getLogger, getProperties, getProperty, getProperty, getProperty, getPropertyKeys, getWarnings, hasWarnings, toString
protected HtmlDocSerializerSession(HtmlDocSerializer ctx, SerializerSessionArgs args)
ctx
- The context creating this session object.
The context contains all the configuration settings for this object.args
- Runtime arguments.public ObjectMap asMap()
Session
asMap
in class HtmlSerializerSession
public final Set<String> getStyle()
HtmlDocSerializer.HTMLDOC_style
setting value in this context.HtmlDocSerializer.HTMLDOC_style
setting value in this context.
An empty array if not specified.
Never public final Set<String> getStylesheet()
HtmlDocSerializer.HTMLDOC_stylesheet
setting value in this context.HtmlDocSerializer.HTMLDOC_stylesheet
setting value in this context.
An empty array if not specified.
Never public final Set<String> getScript()
HtmlDocSerializer.HTMLDOC_script
setting value in this context.HtmlDocSerializer.HTMLDOC_script
setting value in this context.
An empty array if not specified.
Never public final String[] getHead()
HtmlDocSerializer.HTMLDOC_head
setting value in this context.HtmlDocSerializer.HTMLDOC_head
setting value in this context.
An empty array if not specified.
Never public final boolean isNoWrap()
HtmlDocSerializer.HTMLDOC_nowrap
setting value in this context.HtmlDocSerializer.HTMLDOC_nowrap
setting value in this context.public final String[] getHeader()
HtmlDocSerializer.HTMLDOC_header
setting value in this context.HtmlDocSerializer.HTMLDOC_header
setting value in this context.
public final String[] getNavLinks()
HtmlDocSerializer.HTMLDOC_navlinks
setting value in this context.HtmlDocSerializer.HTMLDOC_navlinks
setting value in this context.
public final HtmlDocTemplate getTemplate()
public final String[] getNav()
HtmlDocSerializer.HTMLDOC_nav
setting value in this context.HtmlDocSerializer.HTMLDOC_nav
setting value in this context.
public final String[] getAside()
HtmlDocSerializer.HTMLDOC_aside
setting value in this context.HtmlDocSerializer.HTMLDOC_aside
setting value in this context.
public final String[] getFooter()
HtmlDocSerializer.HTMLDOC_footer
setting value in this context.HtmlDocSerializer.HTMLDOC_footer
setting value in this context.
public final String getNoResultsMessage()
HtmlDocSerializer.HTMLDOC_noResultsMessage
setting value in this context.HtmlDocSerializer.HTMLDOC_noResultsMessage
setting value in this context.
protected void doSerialize(SerializerPipe out, Object o) throws Exception
SerializerSession
This method should NOT close the context object.
doSerialize
in class HtmlStrippedDocSerializerSession
out
- Where to send the output from the serializer.o
- The object to serialize.Exception
- If thrown from underlying stream, or if the input contains a syntax error or is malformed.public void parentSerialize(Object out, Object o) throws Exception
doSerialize(SerializerPipe, Object)
method which invokes just the HTML serializer.out
- Where to send the output from the serializer.o
- The object being serialized.Exception
Copyright © 2018 Apache. All rights reserved.