public class LinkResolver extends Object implements Serializable
Constructor and Description |
---|
LinkResolver(String originalURL)
Raw string input of the URL.
|
Modifier and Type | Method and Description |
---|---|
LinkDetails |
getLinkDetails()
Get the link details
|
static String |
normalizeURL(String url)
Removes the protocol, if it exists, from the front and
removes any random encoding characters
Extend this to do other url cleaning/pre-processing
|
void |
run() |
static List<String> |
tokenizeURL(String url)
Goal is to get the different parts of the URL path.
|
void |
unwindLink(String url) |
protected void |
updateTookInMillis() |
public LinkResolver(String originalURL)
originalURL
- The URL you wish to unwind represented as a string.public LinkDetails getLinkDetails()
public void run()
protected void updateTookInMillis()
public void unwindLink(String url)
public static String normalizeURL(String url)
url
- - The String URL to normalizepublic static List<String> tokenizeURL(String url)
url
- - Url to be tokenizedCopyright © 2018 The Apache Software Foundation. All rights reserved.