| java.lang.Object org.apache.roller.util.URLUtilities
URLUtilities | final public class URLUtilities (Code) | | Utilities class for building urls. This class is meant to centralize the
logic behind building urls so that logic isn't duplicated throughout the
code.
|
Method Summary | |
final public static String | decode(String str) URL decode a string using UTF-8. | final public static String | encode(String str) URL encode a string using UTF-8. | final public static String | getAtomProtocolURL(boolean absolute) | final public static String | getEncodedTagsString(List tags) | final public static String | getPreviewWeblogEntryURL(String previewAnchor, WebsiteData weblog, String locale, boolean absolute) Get url for a given *preview* weblog entry. | final public static String | getPreviewWeblogResourceURL(String previewTheme, WebsiteData weblog, String filePath, boolean absolute) Get a url to a *preview* resource on a given weblog. | final public static String | getPreviewWeblogURL(String previewTheme, WebsiteData weblog, String locale, boolean absolute) Get root url for a given *preview* weblog. | final public static String | getQueryString(Map params) Compose a map of key=value params into a query string. | final public static String | getWeblogCollectionURL(WebsiteData weblog, String locale, String category, String dateString, List tags, int pageNum, boolean absolute) Get url for a collection of entries on a given weblog. | final public static String | getWeblogCommentURL(WebsiteData weblog, String locale, String entryAnchor, String timeStamp, boolean absolute) Get url for a single weblog entry comment on a given weblog. | final public static String | getWeblogCommentsURL(WebsiteData weblog, String locale, String entryAnchor, boolean absolute) Get url for a single weblog entry comments on a given weblog. | final public static String | getWeblogEntryURL(WebsiteData weblog, String locale, String entryAnchor, boolean absolute) Get url for a single weblog entry on a given weblog. | final public static String | getWeblogFeedURL(WebsiteData weblog, String locale, String type, String format, String category, List tags, boolean excerpts, boolean absolute) Get url for a feed on a given weblog. | final public static String | getWeblogPageURL(WebsiteData weblog, String locale, String pageLink, String entryAnchor, String category, String dateString, List tags, int pageNum, boolean absolute) Get url for a custom page on a given weblog. | final public static String | getWeblogResourceURL(WebsiteData weblog, String filePath, boolean absolute) Get url to a resource on a given weblog. | final public static String | getWeblogRsdURL(WebsiteData weblog, boolean absolute) Get url to rsd file on a given weblog. | final public static String | getWeblogSearchURL(WebsiteData weblog, String locale, String query, String category, int pageNum, boolean absolute) Get url to search endpoint on a given weblog. | final public static String | getWeblogTagsJsonURL(WebsiteData weblog, boolean absolute) Get url to JSON tags service url, optionally for a given weblog. | final public static String | getWeblogURL(WebsiteData weblog, String locale, boolean absolute) Get root url for a given weblog. | final public static String | getXmlrpcURL(boolean absolute) |
decode | final public static String decode(String str)(Code) | | URL decode a string using UTF-8.
|
encode | final public static String encode(String str)(Code) | | URL encode a string using UTF-8.
|
getAtomProtocolURL | final public static String getAtomProtocolURL(boolean absolute)(Code) | | |
getEncodedTagsString | final public static String getEncodedTagsString(List tags)(Code) | | |
getPreviewWeblogEntryURL | final public static String getPreviewWeblogEntryURL(String previewAnchor, WebsiteData weblog, String locale, boolean absolute)(Code) | | Get url for a given *preview* weblog entry.
Optionally for a certain locale.
|
getPreviewWeblogResourceURL | final public static String getPreviewWeblogResourceURL(String previewTheme, WebsiteData weblog, String filePath, boolean absolute)(Code) | | Get a url to a *preview* resource on a given weblog.
|
getPreviewWeblogURL | final public static String getPreviewWeblogURL(String previewTheme, WebsiteData weblog, String locale, boolean absolute)(Code) | | Get root url for a given *preview* weblog.
Optionally for a certain locale.
|
getQueryString | final public static String getQueryString(Map params)(Code) | | Compose a map of key=value params into a query string.
|
getWeblogCollectionURL | final public static String getWeblogCollectionURL(WebsiteData weblog, String locale, String category, String dateString, List tags, int pageNum, boolean absolute)(Code) | | Get url for a collection of entries on a given weblog.
|
getWeblogCommentURL | final public static String getWeblogCommentURL(WebsiteData weblog, String locale, String entryAnchor, String timeStamp, boolean absolute)(Code) | | Get url for a single weblog entry comment on a given weblog.
|
getWeblogCommentsURL | final public static String getWeblogCommentsURL(WebsiteData weblog, String locale, String entryAnchor, boolean absolute)(Code) | | Get url for a single weblog entry comments on a given weblog.
|
getWeblogEntryURL | final public static String getWeblogEntryURL(WebsiteData weblog, String locale, String entryAnchor, boolean absolute)(Code) | | Get url for a single weblog entry on a given weblog.
|
getWeblogResourceURL | final public static String getWeblogResourceURL(WebsiteData weblog, String filePath, boolean absolute)(Code) | | Get url to a resource on a given weblog.
|
getWeblogRsdURL | final public static String getWeblogRsdURL(WebsiteData weblog, boolean absolute)(Code) | | Get url to rsd file on a given weblog.
|
getWeblogSearchURL | final public static String getWeblogSearchURL(WebsiteData weblog, String locale, String query, String category, int pageNum, boolean absolute)(Code) | | Get url to search endpoint on a given weblog.
|
getWeblogTagsJsonURL | final public static String getWeblogTagsJsonURL(WebsiteData weblog, boolean absolute)(Code) | | Get url to JSON tags service url, optionally for a given weblog.
|
getWeblogURL | final public static String getWeblogURL(WebsiteData weblog, String locale, boolean absolute)(Code) | | Get root url for a given weblog. Optionally for a certain locale.
|
getXmlrpcURL | final public static String getXmlrpcURL(boolean absolute)(Code) | | |
|
|