Class responsible for parsing and creating URLs for blogs and their entries.
If root URL is http://www.opensubsystems.org then the structure of URLs is
- Bog with folder "firstblog"
root URL = http://www.opensubsystems.org/firstblog/
page URL = http://www.opensubsystems.org/firstblog/index.html
- Entry belonging to "firstblog" with ID 123456789
page URL = http://www.opensubsystems.org/firstblog/123456789.html
version: $Id: BlogNavigator.java,v 1.4 2007/02/20 03:54:31 bastafidli Exp $ author: Miro Halas
Get URL to the page which displays specified blog entry.
Parameters: strFolder - - folder where this entry belongs to Parameters: iEntryId - - id of entry to get page URL for String - URL to the page displaying specified entry
Get blog which coresponds to given request.
Parameters: hsrqRequest - - the servlet request. Object - Identification of Blog coresponding to given request. This can be either String value identifying the Blog folder or Integer value identifying the Blog URL.Ff no such Blog exists, an exception will be thrown
Get URL to the root directory where all entries for given blog exist.
Parameters: strId - - ID of the blog to get root URL for String - URL ends with WebCommonConstants.URL_SEPARATOR_CHAR
Get URL to the page that displays specified blog.
Parameters: objBlogIdentification - - identification of the blog to get page URL for, which should be the folder String
Get URL that allows user to display the first page of the list with the
data. The navigator will correctly identify if it is list of blogs or blog
entries and create the proper page URL.
String - url to display the first page of list of data
Flag signaling if the navigator creates dynamic URLS (e.g. URLS with ?
and &) or it creates URLs that ressemble static pages
(e.g. http://www.bastafidli.com/myblog/page7.html)
boolean
Get URL that allows user to display the last page of the list with the
data. The navigator will correctly identify if it is list of blogs or blog
entries and create the proper page URL.
String - url to display the last page of list of data
Get URL that allows user to display the next page of the list with the
data. The navigator will correctly identify if it is list of blogs or blog
entries and create the proper page URL.
String - url to display next page of list of data
Get URL that allows user to display same page of the list with the
data. The navigator will correctly identify if it is list of blogs or blog
entries and create the proper page URL.
Parameters: iOffset - - offset of the page to display Parameters: bAbsolute - - if true then the offset is taken as an absolute otherwise it is relative to current page, +1 will be the next page, -1 will be the first page String - url to display specified page of list of data
Get URL that allows user to display the previous page of the list with the
data. The navigator will correctly identify if it is list of blogs or blog
entries and create the proper page URL.
String - url to display previous page of list of data
Get URL to the page which displays specified entry.
Parameters: blog - - blog to which this entry belongs to Parameters: entry - - entry to get page URL for String - URL to the page displaying specified entry
Get URL to the page which displays specified entry without knowing
details of the blog the entry belongs to
Parameters: entry - - entry to get page URL for String - URL to the page displaying specified entry
Get URL to the page which displays specified blog entry.
Parameters: entryIdentification - - identification of entry String - URL to the page displaying specified entry
Test if specified request identifies path to a blog index page. It either
doesn't contain any path e.g. http://www.bastafidli.com or just a root
directory http://www.bastafidli.com/ with some index page already tested
by isIndexPage.
boolean - true if the page is index page for blogs
Test if the given request is a request for data displayed on an index page
which is page identified either as index.html or as pageXYZ.html where XYZ
is a number
int - if the request identifies a valid index page then the pagenumber (a positive value) is returned otherwise a negative value is returned.