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.
XmlSerializerSession.ContentResultindent| 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()
Configuration property: Aside section contents.
|
String[] |
getFooter()
Configuration property: Footer section contents.
|
String[] |
getHead()
Configuration property: Additional head section content.
|
String[] |
getHeader()
Configuration property: Header section contents.
|
String[] |
getNav()
Configuration property: Nav section contents.
|
String[] |
getNavlinks()
Configuration property: Page navigation links.
|
String[] |
getNavLinks()
Returns the
HtmlDocSerializer.HTMLDOC_navlinks setting value in this context. |
String |
getNoResultsMessage()
Configuration property: No-results message.
|
Set<String> |
getScript()
Configuration property: Javascript code.
|
Set<String> |
getStyle()
Configuration property: CSS style code.
|
Set<String> |
getStylesheet()
Configuration property: Stylesheet import URLs.
|
HtmlDocTemplate |
getTemplate()
Configuration property: HTML document template.
|
boolean |
isNowrap()
Configuration property: Prevent word wrap on page.
|
boolean |
isNoWrap()
Deprecated.
No replacement.
|
void |
parentSerialize(Object out,
Object o)
Calls the parent
doSerialize(SerializerPipe, Object) method which invokes just the HTML serializer. |
getAnchorText, getHtmlWriter, getLabelParameter, getUriAnchorText, isAddBeanTypeProperties, isAddBeanTypes, isAddKeyValueTableHeaders, isDetectLinksInStrings, isHtmlMode, isLookForLabelParameters, isUri, serializeAnything, serializeAnythingfindNsfMappings, getDefaultNamespace, getNamespaces, getXmlWriter, getXsNamespace, isAddNamespaceUrlsToRoot, isAutoDetectNamespaces, isEnableNamespacesgetMaxIndent, getQuoteChar, isWriterSerializer, serialize, serializeToStringcanIgnoreValue, createBeanTypeNameProperty, createPipe, generalize, getBeanTypeName, getExpectedRootType, getJavaMethod, getListener, getListener, getResponseHeaders, getUriContext, getUriRelativity, getUriResolution, getUriResolver, isAddRootType, isSortCollections, isSortMaps, isTrimEmptyCollections, isTrimEmptyMaps, isTrimNullProperties, isTrimStrings, isUseWhitespace, onBeanGetterException, onError, relativizeUri, resolveUri, serialize, sort, sort, toList, toString, trimgetInitialDepth, getLastLocation, getMaxDepth, getStack, isDetectRecursions, isIgnoreRecursions, pop, push, setCurrentClass, setCurrentProperty, willRecurse_class, checkForWarnings, convertToMemberType, convertToMemberType, convertToType, convertToType, convertToType, getArgsClassMeta, getBeanClassVisibility, getBeanConstructorVisibility, getBeanDictionaryClasses, getBeanFieldVisibility, getBeanMeta, getBeanMethodVisibility, getBeanRegistry, getBeanTypePropertyName, getBeanTypePropertyName, getClassMeta, getClassMeta, getClassMetaForObject, getLocale, getMediaType, getPropertyNamer, getSchema, getStringBuilder, getTimeZone, isBean, isBean, isBeanMapPutReturnsOldValue, isBeansRequireDefaultConstructor, isBeansRequireSerializable, isBeansRequireSettersForGetters, isBeansRequireSomeProperties, isDebug, isFluentSetters, isIgnoreInvocationExceptionsOnGetters, isIgnoreInvocationExceptionsOnSetters, isIgnorePropertiesWithoutSetters, isIgnoreUnknownBeanProperties, isIgnoreUnknownNullBeanProperties, isSortProperties, isUseEnumNames, isUseInterfaceProxies, isUseJavaBeanIntrospector, newBean, newBean, newBeanMap, newBeanMap, newInstance, newInstance, newInstanceFromOuter, object, returnStringBuilder, string, toArray, toBeanMap, toBeanMapaddToCache, addToCache, addWarning, getClassProperty, getFromCache, getInstanceArrayProperty, getInstanceProperty, getLogger, getProperties, getProperty, getProperty, getProperty, getPropertyKeys, getWarnings, hasProperty, hasWarnings, toStringprotected 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()
SessionasMap in class HtmlSerializerSessionpublic final String[] getNavLinks()
HtmlDocSerializer.HTMLDOC_navlinks setting value in this context.HtmlDocSerializer.HTMLDOC_navlinks setting value in this context.
protected void doSerialize(SerializerPipe out, Object o) throws Exception
SerializerSessionThis method should NOT close the context object.
doSerialize in class HtmlStrippedDocSerializerSessionout - 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.Exceptionpublic final Set<String> getStyle()
HtmlDocSerializer.HTMLDOC_stylepublic final Set<String> getStylesheet()
HtmlDocSerializer.HTMLDOC_stylesheetpublic final Set<String> getScript()
HtmlDocSerializer.HTMLDOC_scriptpublic final String[] getNavlinks()
HtmlDocSerializer.HTMLDOC_navlinkspublic final String[] getHead()
HtmlDocSerializer.HTMLDOC_headpublic final String[] getHeader()
HtmlDocSerializer.HTMLDOC_headerpublic final String[] getNav()
HtmlDocSerializer.HTMLDOC_navpublic final String[] getAside()
HtmlDocSerializer.HTMLDOC_asidepublic final String[] getFooter()
HtmlDocSerializer.HTMLDOC_footerpublic final String getNoResultsMessage()
HtmlDocSerializer.HTMLDOC_noResultsMessagepublic final boolean isNowrap()
HtmlDocSerializer.HTMLDOC_nowrappublic final HtmlDocTemplate getTemplate()
HtmlDocSerializer.HTMLDOC_template@Deprecated public final boolean isNoWrap()
Copyright © 2018 Apache. All rights reserved.