Expose string representations URL links clean up logic.
| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the decoded URL as a String representationshould not be null url)Implements abstract org. Escape and decodes a String from the application/x-www-form-urlencoded MIME format. |
| public String | getDescription()
Implements abstract org. Returns a description of the formatter. |
| public String | getExampleInput()
Implements abstract org. Returns an example input string of the formatter. |
| public String | getKey()
Implements abstract org. Returns a unique key for the formatter that can be used for its identification |
| public String | getName()
Implements abstract org. Returns a human readable name of the formatter usable for e.g. in the GUI |
| PATTERN_URL | back to summary |
|---|---|
| private static final Pattern PATTERN_URL | |
| CleanupUrlFormatter | back to summary |
|---|---|
| public CleanupUrlFormatter() | |
| format | back to summary |
|---|---|
| public String format(String url) Implements abstract org. Escape and decodes a String from the application/x-www-form-urlencoded MIME format. Method will also try to find a URL placed after "url=" or "to=".
The conversion process is the same as executed by The plus sign is replaced by its correspondent code (%2b) to avoid the character to be replaced by a space during the decoding execution.
| |
| getDescription | back to summary |
|---|---|
| public String getDescription() Implements abstract org. Doc from org. Returns a description of the formatter. | |
| getExampleInput | back to summary |
|---|---|
| public String getExampleInput() Implements abstract org. Doc from org. Returns an example input string of the formatter. This example is used as input to the formatter to demonstrate its functionality | |
| getKey | back to summary |
|---|---|
| public String getKey() Implements abstract org. Doc from org. Returns a unique key for the formatter that can be used for its identification | |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. Doc from org. Returns a human readable name of the formatter usable for e.g. in the GUI | |