|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.util.shop.URLShop
Factory class for some URL concerns in RSSOwl
Field Summary | |
static String |
AMPHETARATE_REGISTRATION_URL
Following this URL a new AmphetaRate User ID is returned |
private static String[] |
BINARY_EXTENSIONS
Common Binary file Extensions |
private static String |
ERROR_MAIL
Mail alias of where to send the error report |
private static String[] |
FEED_EXTENSIONS
Common Newsfeed Extensions |
private static String[] |
FEED_EXTENSIONS_DOTTED
Common Newsfeed Extensions with leading Dot |
static String |
RSSOWL_CHANGELOG_URL
URL to receive newest version changelog |
static String |
RSSOWL_CONTACT
RSSOwl eMail: Contact |
static String |
RSSOWL_DONATE
RSSOwl Link: Donation |
static String |
RSSOWL_DOWNLOAD
RSSOwl Link: Download |
static String |
RSSOWL_FAQ
RSSOwl Link: FAQ (Newsfeed) |
static String |
RSSOWL_FEED
RSSOwl Link: Newsfeed |
static String |
RSSOWL_FORUM
RSSOwl Link: Discussion Forum |
static String |
RSSOWL_LIST
RSSOwl Link: Mailinglist |
static String |
RSSOWL_PROMOTION
RSSOwl Link: Promotion |
static String |
RSSOWL_TUTORIAL
RSSOwl Link: Tutorial |
static String |
RSSOWL_UPDATE_URL
URL to receive newest version information |
static String |
RSSOWL_WEBPAGE
RSSOwl Link: Webpage |
Constructor Summary | |
private |
URLShop()
This utility class constructor is hidden |
Method Summary | |
static String |
canonicalize(String simpleURL)
Transform the given URL into canonical form. |
static Vector |
crawlUrls(String fromUrl)
Try to crawl any URL from the given WebSite. |
static String |
createErrorReport()
Create an error report to be sent as mail |
static String |
createTellMyFriends()
Build the RSSOwl teaser in a "mailto:" link |
static boolean |
hasProtocolName(String url)
Check if the given URL contains a protocol name |
static boolean |
isSimpleHostName(String url)
Check if the given URL only has a simple host name. |
static boolean |
looksLikeBinary(String str)
Return TRUE in case the given URL includes onr of the common binary extensions. |
static boolean |
looksLikeNewsfeed(String str,
boolean dotted)
Return TRUE in case the given URL includes one of the common newsfeed extensions. |
static boolean |
looksLikeNewsfeed(URL url,
boolean dotted)
Return TRUE in case the given URL includes one of the common newsfeed extensions. |
static boolean |
looksLikeURL(String str)
Return TRUE in case the given String looks like an URL. |
static String |
mailToUrllEncode(String str)
URLEncode the given String. |
static String |
urlEncode(String str)
This is a simple wrapper method for the encode() Method of the URLEncoder. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String AMPHETARATE_REGISTRATION_URL
public static String RSSOWL_CHANGELOG_URL
public static String RSSOWL_CONTACT
public static String RSSOWL_DONATE
public static String RSSOWL_DOWNLOAD
public static String RSSOWL_FAQ
public static String RSSOWL_FEED
public static String RSSOWL_FORUM
public static String RSSOWL_LIST
public static String RSSOWL_PROMOTION
public static String RSSOWL_TUTORIAL
public static String RSSOWL_UPDATE_URL
public static String RSSOWL_WEBPAGE
private static final String[] BINARY_EXTENSIONS
private static final String ERROR_MAIL
private static final String[] FEED_EXTENSIONS
private static final String[] FEED_EXTENSIONS_DOTTED
Constructor Detail |
private URLShop()
Method Detail |
public static String canonicalize(String simpleURL)
simpleURL
- The URL to canonicalize
public static Vector crawlUrls(String fromUrl) throws org.apache.commons.httpclient.HttpException, IOException
fromUrl
- The URL of the WebSite to crawl URLs from.
org.apache.commons.httpclient.HttpException
- In case of an error.
IOException
- In case of an error.public static String createErrorReport()
public static String createTellMyFriends()
public static boolean hasProtocolName(String url)
url
- The URL to check
public static boolean isSimpleHostName(String url)
url
- The URL to check
public static boolean looksLikeBinary(String str)
str
- The URL to check
public static boolean looksLikeNewsfeed(String str, boolean dotted)
str
- The URL to checkdotted
- If TRUE use extensions with leading dot
public static boolean looksLikeNewsfeed(URL url, boolean dotted)
url
- The URL to checkdotted
- If TRUE use extensions with leading dot
public static boolean looksLikeURL(String str)
str
- The String to check
public static String mailToUrllEncode(String str)
str
- String to encode
public static String urlEncode(String str)
str
- String to encode
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |