/usr/share/doc/libowasp-antisamy-java/api/org/owasp/validator/html/Policy.html is in libowasp-antisamy-java-doc 1.5.3+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.6.0_31) on Fri May 30 15:19:44 BST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Policy (OWASP AntiSamy 1.5.3 API)</title>
<meta name="date" content="2014-05-30">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Policy (OWASP AntiSamy 1.5.3 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Policy.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/owasp/validator/html/InternalPolicy.html" title="class in org.owasp.validator.html"><span class="strong">PREV CLASS</span></a></li>
<li><a href="../../../../org/owasp/validator/html/Policy.ParseContext.html" title="class in org.owasp.validator.html"><span class="strong">NEXT CLASS</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/owasp/validator/html/Policy.html" target="_top">FRAMES</a></li>
<li><a href="Policy.html" target="_top">NO FRAMES</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>SUMMARY: </li>
<li><a href="#nested_class_summary">NESTED</a> | </li>
<li><a href="#field_summary">FIELD</a> | </li>
<li><a href="#constructor_summary">CONSTR</a> | </li>
<li><a href="#method_summary">METHOD</a></li>
</ul>
<ul class="subNavList">
<li>DETAIL: </li>
<li><a href="#field_detail">FIELD</a> | </li>
<li><a href="#constructor_detail">CONSTR</a> | </li>
<li><a href="#method_detail">METHOD</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<p class="subTitle">org.owasp.validator.html</p>
<h2 title="Class Policy" class="title">Class Policy</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.owasp.validator.html.Policy</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../org/owasp/validator/html/InternalPolicy.html" title="class in org.owasp.validator.html">InternalPolicy</a></dd>
</dl>
<hr>
<br>
<pre>public class <strong>Policy</strong>
extends java.lang.Object</pre>
<div class="block">Policy.java
<p/>
This file holds the model for our policy engine.</div>
<dl><dt><span class="strong">Author:</span></dt>
<dd>Arshan Dabirsiaghi</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static class </code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.ParseContext.html" title="class in org.owasp.validator.html">Policy.ParseContext</a></strong></code> </td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#ACTION_FILTER">ACTION_FILTER</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#ACTION_TRUNCATE">ACTION_TRUNCATE</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#ACTION_VALIDATE">ACTION_VALIDATE</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#ANCHORS_NOFOLLOW">ANCHORS_NOFOLLOW</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.util.regex.Pattern</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#ANYTHING_REGEXP">ANYTHING_REGEXP</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#CONNECTION_TIMEOUT">CONNECTION_TIMEOUT</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#DEFAULT_MAX_INPUT_SIZE">DEFAULT_MAX_INPUT_SIZE</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#DEFAULT_MAX_STYLESHEET_IMPORTS">DEFAULT_MAX_STYLESHEET_IMPORTS</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#DEFAULT_POLICY_URI">DEFAULT_POLICY_URI</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.util.Map<java.lang.String,java.lang.String></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#directives">directives</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#EMBED_STYLESHEETS">EMBED_STYLESHEETS</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#ENTITY_ENCODE_INTL_CHARS">ENTITY_ENCODE_INTL_CHARS</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#FORMAT_OUTPUT">FORMAT_OUTPUT</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#OMIT_DOCTYPE_DECLARATION">OMIT_DOCTYPE_DECLARATION</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#OMIT_XML_DECLARATION">OMIT_XML_DECLARATION</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#PRESERVE_COMMENTS">PRESERVE_COMMENTS</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#PRESERVE_SPACE">PRESERVE_SPACE</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.util.Map<java.lang.String,<a href="../../../../org/owasp/validator/html/model/Tag.html" title="class in org.owasp.validator.html.model">Tag</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#tagRules">tagRules</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#USE_XHTML">USE_XHTML</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#VALIDATE_PARAM_AS_EMBED">VALIDATE_PARAM_AS_EMBED</a></strong></code> </td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#Policy(org.owasp.validator.html.Policy.ParseContext)">Policy</a></strong>(<a href="../../../../org/owasp/validator/html/Policy.ParseContext.html" title="class in org.owasp.validator.html">Policy.ParseContext</a> parseContext)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#Policy(org.owasp.validator.html.Policy, java.util.Map, java.util.Map)">Policy</a></strong>(<a href="../../../../org/owasp/validator/html/Policy.html" title="class in org.owasp.validator.html">Policy</a> old,
java.util.Map<java.lang.String,java.lang.String> directives,
java.util.Map<java.lang.String,<a href="../../../../org/owasp/validator/html/model/Tag.html" title="class in org.owasp.validator.html.model">Tag</a>> tagRules)</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/owasp/validator/html/Policy.html" title="class in org.owasp.validator.html">Policy</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#cloneWithDirective(java.lang.String, java.lang.String)">cloneWithDirective</a></strong>(java.lang.String name,
java.lang.String value)</code>
<div class="block">Creates a copy of this policy with an added/changed directive.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/owasp/validator/html/TagMatcher.html" title="class in org.owasp.validator.html">TagMatcher</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getAllowedEmptyTags()">getAllowedEmptyTags</a></strong>()</code>
<div class="block">Return all the allowed empty tags configured in the Policy.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/owasp/validator/html/model/AntiSamyPattern.html" title="class in org.owasp.validator.html.model">AntiSamyPattern</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getCommonRegularExpressions(java.lang.String)">getCommonRegularExpressions</a></strong>(java.lang.String name)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getDirective(java.lang.String)">getDirective</a></strong>(java.lang.String name)</code>
<div class="block">Return a directive value based on a lookup name.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/owasp/validator/html/model/Attribute.html" title="class in org.owasp.validator.html.model">Attribute</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getGlobalAttributeByName(java.lang.String)">getGlobalAttributeByName</a></strong>(java.lang.String name)</code>
<div class="block">A simple method for returning on of the <global-attribute> entries by
name.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/owasp/validator/html/Policy.html" title="class in org.owasp.validator.html">Policy</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getInstance()">getInstance</a></strong>()</code>
<div class="block">This retrieves a Policy based on a default location ("resources/antisamy.xml")</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/owasp/validator/html/Policy.html" title="class in org.owasp.validator.html">Policy</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getInstance(java.io.File)">getInstance</a></strong>(java.io.File file)</code>
<div class="block">This retrieves a Policy based on the File object passed in</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/owasp/validator/html/Policy.html" title="class in org.owasp.validator.html">Policy</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getInstance(java.io.InputStream)">getInstance</a></strong>(java.io.InputStream inputStream)</code>
<div class="block">This retrieves a Policy based on the InputStream object passed in</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/owasp/validator/html/Policy.html" title="class in org.owasp.validator.html">Policy</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getInstance(java.lang.String)">getInstance</a></strong>(java.lang.String filename)</code>
<div class="block">This retrieves a Policy based on the file name passed in</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/owasp/validator/html/Policy.html" title="class in org.owasp.validator.html">Policy</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getInstance(java.net.URL)">getInstance</a></strong>(java.net.URL url)</code>
<div class="block">This retrieves a Policy based on the URL object passed in.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static <a href="../../../../org/owasp/validator/html/Policy.ParseContext.html" title="class in org.owasp.validator.html">Policy.ParseContext</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getParseContext(org.w3c.dom.Element, java.net.URL)">getParseContext</a></strong>(org.w3c.dom.Element topLevelElement,
java.net.URL baseUrl)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/owasp/validator/html/model/Property.html" title="class in org.owasp.validator.html.model">Property</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getPropertyByName(java.lang.String)">getPropertyByName</a></strong>(java.lang.String propertyName)</code>
<div class="block">Retrieves a CSS Property from the Policy.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/owasp/validator/html/TagMatcher.html" title="class in org.owasp.validator.html">TagMatcher</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getRequiresClosingTags()">getRequiresClosingTags</a></strong>()</code>
<div class="block">Return all the tags that are required to be closed with an end tag, even if they have no child content.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected static <a href="../../../../org/owasp/validator/html/Policy.ParseContext.html" title="class in org.owasp.validator.html">Policy.ParseContext</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getSimpleParseContext(org.w3c.dom.Element)">getSimpleParseContext</a></strong>(org.w3c.dom.Element topLevelElement)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/owasp/validator/html/model/Tag.html" title="class in org.owasp.validator.html.model">Tag</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getTagByLowercaseName(java.lang.String)">getTagByLowercaseName</a></strong>(java.lang.String tagName)</code>
<div class="block">The path to the base policy file, used to resolve relative paths when reading included files</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected static org.w3c.dom.Element</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getTopLevelElement(org.xml.sax.InputSource)">getTopLevelElement</a></strong>(org.xml.sax.InputSource source)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static org.w3c.dom.Element</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#getTopLevelElement(java.net.URL)">getTopLevelElement</a></strong>(java.net.URL baseUrl)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static org.xml.sax.InputSource</code></td>
<td class="colLast"><code><strong><a href="../../../../org/owasp/validator/html/Policy.html#resolveEntity(java.lang.String, java.net.URL)">resolveEntity</a></strong>(java.lang.String systemId,
java.net.URL baseUrl)</code>
<div class="block">Resolves public & system ids to files stored within the JAR.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="ANYTHING_REGEXP">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ANYTHING_REGEXP</h4>
<pre>public static final java.util.regex.Pattern ANYTHING_REGEXP</pre>
</li>
</ul>
<a name="DEFAULT_POLICY_URI">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_POLICY_URI</h4>
<pre>protected static final java.lang.String DEFAULT_POLICY_URI</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.DEFAULT_POLICY_URI">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_MAX_INPUT_SIZE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_MAX_INPUT_SIZE</h4>
<pre>public static final int DEFAULT_MAX_INPUT_SIZE</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.DEFAULT_MAX_INPUT_SIZE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_MAX_STYLESHEET_IMPORTS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_MAX_STYLESHEET_IMPORTS</h4>
<pre>public static final int DEFAULT_MAX_STYLESHEET_IMPORTS</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.DEFAULT_MAX_STYLESHEET_IMPORTS">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="OMIT_XML_DECLARATION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>OMIT_XML_DECLARATION</h4>
<pre>public static final java.lang.String OMIT_XML_DECLARATION</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.OMIT_XML_DECLARATION">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="OMIT_DOCTYPE_DECLARATION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>OMIT_DOCTYPE_DECLARATION</h4>
<pre>public static final java.lang.String OMIT_DOCTYPE_DECLARATION</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.OMIT_DOCTYPE_DECLARATION">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="USE_XHTML">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>USE_XHTML</h4>
<pre>public static final java.lang.String USE_XHTML</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.USE_XHTML">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORMAT_OUTPUT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_OUTPUT</h4>
<pre>public static final java.lang.String FORMAT_OUTPUT</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.FORMAT_OUTPUT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="EMBED_STYLESHEETS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EMBED_STYLESHEETS</h4>
<pre>public static final java.lang.String EMBED_STYLESHEETS</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.EMBED_STYLESHEETS">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="CONNECTION_TIMEOUT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CONNECTION_TIMEOUT</h4>
<pre>public static final java.lang.String CONNECTION_TIMEOUT</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.CONNECTION_TIMEOUT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ANCHORS_NOFOLLOW">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ANCHORS_NOFOLLOW</h4>
<pre>public static final java.lang.String ANCHORS_NOFOLLOW</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.ANCHORS_NOFOLLOW">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="VALIDATE_PARAM_AS_EMBED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>VALIDATE_PARAM_AS_EMBED</h4>
<pre>public static final java.lang.String VALIDATE_PARAM_AS_EMBED</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.VALIDATE_PARAM_AS_EMBED">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="PRESERVE_SPACE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PRESERVE_SPACE</h4>
<pre>public static final java.lang.String PRESERVE_SPACE</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.PRESERVE_SPACE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="PRESERVE_COMMENTS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PRESERVE_COMMENTS</h4>
<pre>public static final java.lang.String PRESERVE_COMMENTS</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.PRESERVE_COMMENTS">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ENTITY_ENCODE_INTL_CHARS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ENTITY_ENCODE_INTL_CHARS</h4>
<pre>public static final java.lang.String ENTITY_ENCODE_INTL_CHARS</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.ENTITY_ENCODE_INTL_CHARS">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ACTION_VALIDATE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ACTION_VALIDATE</h4>
<pre>public static final java.lang.String ACTION_VALIDATE</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.ACTION_VALIDATE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ACTION_FILTER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ACTION_FILTER</h4>
<pre>public static final java.lang.String ACTION_FILTER</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.ACTION_FILTER">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ACTION_TRUNCATE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ACTION_TRUNCATE</h4>
<pre>public static final java.lang.String ACTION_TRUNCATE</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.owasp.validator.html.Policy.ACTION_TRUNCATE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="tagRules">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tagRules</h4>
<pre>protected final java.util.Map<java.lang.String,<a href="../../../../org/owasp/validator/html/model/Tag.html" title="class in org.owasp.validator.html.model">Tag</a>> tagRules</pre>
</li>
</ul>
<a name="directives">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>directives</h4>
<pre>protected final java.util.Map<java.lang.String,java.lang.String> directives</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Policy(org.owasp.validator.html.Policy.ParseContext)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Policy</h4>
<pre>protected Policy(<a href="../../../../org/owasp/validator/html/Policy.ParseContext.html" title="class in org.owasp.validator.html">Policy.ParseContext</a> parseContext)
throws <a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></code></dd></dl>
</li>
</ul>
<a name="Policy(org.owasp.validator.html.Policy, java.util.Map, java.util.Map)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Policy</h4>
<pre>protected Policy(<a href="../../../../org/owasp/validator/html/Policy.html" title="class in org.owasp.validator.html">Policy</a> old,
java.util.Map<java.lang.String,java.lang.String> directives,
java.util.Map<java.lang.String,<a href="../../../../org/owasp/validator/html/model/Tag.html" title="class in org.owasp.validator.html.model">Tag</a>> tagRules)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getTagByLowercaseName(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTagByLowercaseName</h4>
<pre>public <a href="../../../../org/owasp/validator/html/model/Tag.html" title="class in org.owasp.validator.html.model">Tag</a> getTagByLowercaseName(java.lang.String tagName)</pre>
<div class="block">The path to the base policy file, used to resolve relative paths when reading included files</div>
</li>
</ul>
<a name="getPropertyByName(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPropertyByName</h4>
<pre>public <a href="../../../../org/owasp/validator/html/model/Property.html" title="class in org.owasp.validator.html.model">Property</a> getPropertyByName(java.lang.String propertyName)</pre>
<div class="block">Retrieves a CSS Property from the Policy.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>propertyName</code> - The name of the CSS Property to look up.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The CSS Property associated with the name specified, or null if none is found.</dd></dl>
</li>
</ul>
<a name="getInstance()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInstance</h4>
<pre>public static <a href="../../../../org/owasp/validator/html/Policy.html" title="class in org.owasp.validator.html">Policy</a> getInstance()
throws <a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></pre>
<div class="block">This retrieves a Policy based on a default location ("resources/antisamy.xml")</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A populated Policy object based on the XML policy file located in the default location.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></code> - If the file is not found or there is a problem parsing the file.</dd></dl>
</li>
</ul>
<a name="getInstance(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInstance</h4>
<pre>public static <a href="../../../../org/owasp/validator/html/Policy.html" title="class in org.owasp.validator.html">Policy</a> getInstance(java.lang.String filename)
throws <a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></pre>
<div class="block">This retrieves a Policy based on the file name passed in</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>filename</code> - The path to the XML policy file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A populated Policy object based on the XML policy file located in the location passed in.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></code> - If the file is not found or there is a problem parsing the file.</dd></dl>
</li>
</ul>
<a name="getInstance(java.io.InputStream)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInstance</h4>
<pre>public static <a href="../../../../org/owasp/validator/html/Policy.html" title="class in org.owasp.validator.html">Policy</a> getInstance(java.io.InputStream inputStream)
throws <a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></pre>
<div class="block">This retrieves a Policy based on the InputStream object passed in</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>inputStream</code> - An InputStream which contains thhe XML policy information.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A populated Policy object based on the XML policy file pointed to by the inputStream parameter.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></code> - If there is a problem parsing the input stream.</dd></dl>
</li>
</ul>
<a name="getInstance(java.io.File)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInstance</h4>
<pre>public static <a href="../../../../org/owasp/validator/html/Policy.html" title="class in org.owasp.validator.html">Policy</a> getInstance(java.io.File file)
throws <a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></pre>
<div class="block">This retrieves a Policy based on the File object passed in</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>file</code> - A File object which contains the XML policy information.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A populated Policy object based on the XML policy file pointed to by the File parameter.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></code> - If the file is not found or there is a problem parsing the file.</dd></dl>
</li>
</ul>
<a name="getInstance(java.net.URL)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInstance</h4>
<pre>public static <a href="../../../../org/owasp/validator/html/Policy.html" title="class in org.owasp.validator.html">Policy</a> getInstance(java.net.URL url)
throws <a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></pre>
<div class="block">This retrieves a Policy based on the URL object passed in.
<p/>
NOTE: This is the only factory method that will work with <include> tags
in AntiSamy policy files.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>url</code> - A URL object which contains the XML policy information.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A populated Policy object based on the XML policy file pointed to by the File parameter.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></code> - If the file is not found or there is a problem parsing the file.</dd></dl>
</li>
</ul>
<a name="getSimpleParseContext(org.w3c.dom.Element)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSimpleParseContext</h4>
<pre>protected static <a href="../../../../org/owasp/validator/html/Policy.ParseContext.html" title="class in org.owasp.validator.html">Policy.ParseContext</a> getSimpleParseContext(org.w3c.dom.Element topLevelElement)
throws <a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></code></dd></dl>
</li>
</ul>
<a name="getParseContext(org.w3c.dom.Element, java.net.URL)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getParseContext</h4>
<pre>protected static <a href="../../../../org/owasp/validator/html/Policy.ParseContext.html" title="class in org.owasp.validator.html">Policy.ParseContext</a> getParseContext(org.w3c.dom.Element topLevelElement,
java.net.URL baseUrl)
throws <a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></code></dd></dl>
</li>
</ul>
<a name="getTopLevelElement(java.net.URL)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTopLevelElement</h4>
<pre>protected static org.w3c.dom.Element getTopLevelElement(java.net.URL baseUrl)
throws <a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></code></dd></dl>
</li>
</ul>
<a name="getTopLevelElement(org.xml.sax.InputSource)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTopLevelElement</h4>
<pre>protected static org.w3c.dom.Element getTopLevelElement(org.xml.sax.InputSource source)
throws <a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/owasp/validator/html/PolicyException.html" title="class in org.owasp.validator.html">PolicyException</a></code></dd></dl>
</li>
</ul>
<a name="cloneWithDirective(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cloneWithDirective</h4>
<pre>public <a href="../../../../org/owasp/validator/html/Policy.html" title="class in org.owasp.validator.html">Policy</a> cloneWithDirective(java.lang.String name,
java.lang.String value)</pre>
<div class="block">Creates a copy of this policy with an added/changed directive.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - The directive to add/modify</dd><dd><code>value</code> - The value</dd>
<dt><span class="strong">Returns:</span></dt><dd>A clone of the policy with the updated directive</dd></dl>
</li>
</ul>
<a name="getGlobalAttributeByName(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGlobalAttributeByName</h4>
<pre>public <a href="../../../../org/owasp/validator/html/model/Attribute.html" title="class in org.owasp.validator.html.model">Attribute</a> getGlobalAttributeByName(java.lang.String name)</pre>
<div class="block">A simple method for returning on of the <global-attribute> entries by
name.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - The name of the global-attribute we want to look up.</dd>
<dt><span class="strong">Returns:</span></dt><dd>An Attribute associated with the global-attribute lookup name specified.</dd></dl>
</li>
</ul>
<a name="getAllowedEmptyTags()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAllowedEmptyTags</h4>
<pre>public <a href="../../../../org/owasp/validator/html/TagMatcher.html" title="class in org.owasp.validator.html">TagMatcher</a> getAllowedEmptyTags()</pre>
<div class="block">Return all the allowed empty tags configured in the Policy.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A String array of all the he allowed empty tags configured in the Policy.</dd></dl>
</li>
</ul>
<a name="getRequiresClosingTags()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRequiresClosingTags</h4>
<pre>public <a href="../../../../org/owasp/validator/html/TagMatcher.html" title="class in org.owasp.validator.html">TagMatcher</a> getRequiresClosingTags()</pre>
<div class="block">Return all the tags that are required to be closed with an end tag, even if they have no child content.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A String array of all the tags that are required to be closed with an end tag, even if they have no child content.</dd></dl>
</li>
</ul>
<a name="getDirective(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDirective</h4>
<pre>public java.lang.String getDirective(java.lang.String name)</pre>
<div class="block">Return a directive value based on a lookup name.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A String object containing the directive associated with the lookup name, or null if none is found.</dd></dl>
</li>
</ul>
<a name="resolveEntity(java.lang.String, java.net.URL)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resolveEntity</h4>
<pre>public static org.xml.sax.InputSource resolveEntity(java.lang.String systemId,
java.net.URL baseUrl)
throws java.io.IOException,
org.xml.sax.SAXException</pre>
<div class="block">Resolves public & system ids to files stored within the JAR.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
<dd><code>org.xml.sax.SAXException</code></dd></dl>
</li>
</ul>
<a name="getCommonRegularExpressions(java.lang.String)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getCommonRegularExpressions</h4>
<pre>public <a href="../../../../org/owasp/validator/html/model/AntiSamyPattern.html" title="class in org.owasp.validator.html.model">AntiSamyPattern</a> getCommonRegularExpressions(java.lang.String name)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Policy.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/owasp/validator/html/InternalPolicy.html" title="class in org.owasp.validator.html"><span class="strong">PREV CLASS</span></a></li>
<li><a href="../../../../org/owasp/validator/html/Policy.ParseContext.html" title="class in org.owasp.validator.html"><span class="strong">NEXT CLASS</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/owasp/validator/html/Policy.html" target="_top">FRAMES</a></li>
<li><a href="Policy.html" target="_top">NO FRAMES</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>SUMMARY: </li>
<li><a href="#nested_class_summary">NESTED</a> | </li>
<li><a href="#field_summary">FIELD</a> | </li>
<li><a href="#constructor_summary">CONSTR</a> | </li>
<li><a href="#method_summary">METHOD</a></li>
</ul>
<ul class="subNavList">
<li>DETAIL: </li>
<li><a href="#field_detail">FIELD</a> | </li>
<li><a href="#constructor_detail">CONSTR</a> | </li>
<li><a href="#method_detail">METHOD</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2014. All Rights Reserved.</small></p>
</body>
</html>
|