-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Trever Shick
committed
Nov 12, 2016
1 parent
ef670b6
commit d019412
Showing
38 changed files
with
709 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
core/src/main/java/io/shick/jsoup/MutableWhitelistConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,45 @@ | ||
package io.shick.jsoup; | ||
|
||
/** | ||
* <p>MutableWhitelistConfiguration interface.</p> | ||
* | ||
* @author Trever Shick - trever@shick.io | ||
*/ | ||
public interface MutableWhitelistConfiguration extends WhitelistConfiguration { | ||
/** | ||
* <p>Add an allowed tag to the configuration</p> | ||
* | ||
* @param tagName (non null) an HTML tag name | ||
* @return a {@link io.shick.jsoup.MutableWhitelistConfiguration} object. | ||
*/ | ||
MutableWhitelistConfiguration allowTag(String tagName); | ||
|
||
/** | ||
* <p>Add an enforced attribute value to the configuration</p> | ||
* | ||
* @param tagName (non null) an HTML tag name | ||
* @param attrName (non null) an HTML attribute name | ||
* @param enforcedValue (non null) the string value for the specified attribute. | ||
* @return a {@link io.shick.jsoup.MutableWhitelistConfiguration} object. | ||
*/ | ||
MutableWhitelistConfiguration enforceAttribute(String tagName, String attrName, String enforcedValue); | ||
|
||
/** | ||
* <p>Add an allowed protocol to the configuration</p> | ||
* | ||
* @param tagName (non null) an HTML tag name | ||
* @param attrName (non null) an HTML attribute name | ||
* @param protocol (non null) a protocol like 'https' or 'http' | ||
* @return a {@link io.shick.jsoup.MutableWhitelistConfiguration} object. | ||
*/ | ||
MutableWhitelistConfiguration allowProtocol(String tagName, String attrName, String protocol); | ||
|
||
/** | ||
* <p>Add an allowed attribute to the configuration</p> | ||
* | ||
* @param tagName (non null) an HTML tag name | ||
* @param attrName (non null) an HTML attribute name | ||
* @return a {@link io.shick.jsoup.MutableWhitelistConfiguration} object. | ||
*/ | ||
MutableWhitelistConfiguration allowAttribute(String tagName, String attrName); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.