@Component public class UriProcessor extends Object implements UriProcessorInterface
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
UriProcessor() |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
isStringMatchRegexps(String string,
String[] regexs) |
CrawleableUri |
recognizeInetAddress(CrawleableUri uri)
Recognizes the IP address of
CrawleableUri. |
CrawleableUri |
recognizeUriType(CrawleableUri uri)
Recognizes the type of
CrawleableUri. |
public CrawleableUri recognizeUriType(CrawleableUri uri)
UriProcessorInterfaceCrawleableUri.recognizeUriType in interface UriProcessorInterfaceuri - the CrawleableUri instancepublic CrawleableUri recognizeInetAddress(CrawleableUri uri) throws UnknownHostException
UriProcessorInterfaceCrawleableUri.recognizeInetAddress in interface UriProcessorInterfaceuri - the CrawleableUri instanceUnknownHostExceptionCopyright © 2017–2019. All rights reserved.