public class InternalPolicy extends Policy
Policy.ParseContext
ACTION_FILTER, ACTION_TRUNCATE, ACTION_VALIDATE, ANCHORS_NOFOLLOW, ANYTHING_REGEXP, CONNECTION_TIMEOUT, DEFAULT_MAX_INPUT_SIZE, DEFAULT_MAX_STYLESHEET_IMPORTS, DEFAULT_POLICY_URI, directives, EMBED_STYLESHEETS, ENTITY_ENCODE_INTL_CHARS, FORMAT_OUTPUT, OMIT_DOCTYPE_DECLARATION, OMIT_XML_DECLARATION, PRESERVE_COMMENTS, PRESERVE_SPACE, tagRules, USE_XHTML, VALIDATE_PARAM_AS_EMBED
Modifier | Constructor and Description |
---|---|
protected |
InternalPolicy(Policy old,
Map<String,String> directives,
Map<String,Tag> tagRules) |
protected |
InternalPolicy(URL baseUrl,
Policy.ParseContext parseContext) |
Modifier and Type | Method and Description |
---|---|
int |
determineMaxInputSize()
Returns the maximum input size.
|
Tag |
getEmbedTag() |
int |
getMaxInputSize() |
String |
getOnUnknownTag() |
Tag |
getStyleTag() |
boolean |
isEmbedStyleSheets() |
boolean |
isEncodeUnknownTag() |
boolean |
isEntityEncodeIntlCharacters() |
boolean |
isFormatOutput() |
boolean |
isNofollowAnchors() |
boolean |
isOmitDoctypeDeclaration() |
boolean |
isOmitXmlDeclaration() |
boolean |
isPreserveComments() |
boolean |
isPreserveSpace() |
boolean |
isUseXhtml() |
boolean |
isValidateParamAsEmbed() |
cloneWithDirective, getAllowedEmptyTags, getCommonRegularExpressions, getDirective, getGlobalAttributeByName, getInstance, getInstance, getInstance, getInstance, getInstance, getParseContext, getPropertyByName, getRequiresClosingTags, getSimpleParseContext, getTagByLowercaseName, getTopLevelElement, getTopLevelElement, resolveEntity
protected InternalPolicy(URL baseUrl, Policy.ParseContext parseContext) throws PolicyException
PolicyException
public Tag getEmbedTag()
public Tag getStyleTag()
public boolean isEmbedStyleSheets()
public boolean isPreserveComments()
public int getMaxInputSize()
public boolean isEntityEncodeIntlCharacters()
public boolean isNofollowAnchors()
public boolean isValidateParamAsEmbed()
public boolean isFormatOutput()
public boolean isPreserveSpace()
public boolean isOmitXmlDeclaration()
public boolean isUseXhtml()
public boolean isOmitDoctypeDeclaration()
public String getOnUnknownTag()
public boolean isEncodeUnknownTag()
public int determineMaxInputSize()
DEFAULT_MAX_INPUT_SIZE
is used.Copyright © 2018. All rights reserved.