| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private static <T> Predicate | |
| public static String | Returns: the XHTML as Stringthe resource to build the listing from resource, String The base URL base, boolean True if the parent directory should be included parent, String query params query)Convert the Resource directory into an XHTML directory listing. |
| private static String | Returns: the defanged text.the raw text to encode. raw)Encode any characters that could break the URI string in an HREF. |
| LOG | back to summary |
|---|---|
| public static final Logger LOG | |
| ResourceListing | back to summary |
|---|---|
| public ResourceListing() | |
| deTag | back to summary |
|---|---|
| private static String deTag(String raw) | |
| distinctBy | back to summary |
|---|---|
| private static <T> Predicate | |
| getAsXHTML | back to summary |
|---|---|
| public static String getAsXHTML(Resource resource, String base, boolean parent, String query) Convert the Resource directory into an XHTML directory listing. | |
| hrefEncodeURI | back to summary |
|---|---|
| private static String hrefEncodeURI(String raw) Encode any characters that could break the URI string in an HREF.
Such as:
The above example would parse incorrectly on various browsers as the "<" or '"' characters would end the href attribute value string prematurely. | |