public final class CommonRestrictions extends Object
AbstractImporterHandler
. Each method return a newly created
list that can safely be modified without impacting subsequent calls.Modifier and Type | Method and Description |
---|---|
static List<PropertyMatcher> |
domContentTypes()
Default content-types defining a DOM document.
|
static List<PropertyMatcher> |
htmlContentTypes()
Default content-types defining an HTML or XHTML document.
|
public static List<PropertyMatcher> domContentTypes()
document.contentType
field has to contain one of these for the restriction to apply:
text/html, application/xhtml+xml, vnd.wap.xhtml+xml, application/x-asp, application/xml, text/xml, application/atom+xml, application/xslt+xml, image/svg+xml, application/mathml+xml, application/rss+xml
public static List<PropertyMatcher> htmlContentTypes()
document.contentType
field has to contain one of these for the restriction to apply:
text/html, application/xhtml+xml, application/vnd.wap.xhtml+xml
Copyright © 2009–2021 Norconex Inc.. All rights reserved.