|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.blog.www.BlogNavigator
public class BlogNavigator
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
| Field Summary | |
|---|---|
static java.lang.String |
LOGIN_WEB_PAGE
Page where user can login to the system. |
static java.lang.String |
LOGOUT_WEB_PAGE
Page where user can logout to the system. |
protected javax.servlet.http.HttpServletRequest |
m_hsrqRequest
Request that will be used by this navigator |
protected java.lang.String |
m_strBlogDirectoryURL
URL to the directory containing all blogs. |
| Constructor Summary | |
|---|---|
BlogNavigator(javax.servlet.http.HttpServletRequest hsrqRequest)
Creates a new instance of BlogNavigator |
|
| Method Summary | |
|---|---|
org.opensubsystems.blog.www.BlogEntryIdentification |
getBlogEntryIdentification(javax.servlet.http.HttpServletRequest hsrqRequest)
Get blog and entries which coresponds to given request. |
protected java.lang.String |
getBlogEntryURL(java.lang.String strFolder,
int iEntryId)
Get URL to the page which displays specified blog entry. |
java.lang.Object |
getBlogIdentification(javax.servlet.http.HttpServletRequest hsrqRequest)
Get blog which coresponds to given request. |
protected java.lang.StringBuffer |
getBlogRootURL(java.lang.String strId)
Get URL to the root directory where all entries for given blog exist. |
java.lang.String |
getBlogURL(java.lang.Object objBlogIdentification)
Get URL to the page that displays specified blog. |
java.lang.String |
getPostURL()
Get URL to where a form can be posted to be processed |
java.lang.String |
getRootURL()
Get URL to the root directory where all blogs exist. |
java.lang.String |
getURL(Blog blog)
Get URL to the page which displays this blog. |
java.lang.String |
getURL(Blog blog,
Entry entry)
Get URL to the page which displays specified entry. |
java.lang.String |
getURL(org.opensubsystems.blog.www.BlogEntryIdentification entryIdentification)
Get URL to the page which displays specified blog entry. |
boolean |
isLoginPage()
Test if the requested path is path to the page where user can login to the system. |
boolean |
isLogoutPage()
Test if the requested path is path to the page where user can login to the system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LOGIN_WEB_PAGE
public static final java.lang.String LOGOUT_WEB_PAGE
protected java.lang.String m_strBlogDirectoryURL
protected javax.servlet.http.HttpServletRequest m_hsrqRequest
| Constructor Detail |
|---|
public BlogNavigator(javax.servlet.http.HttpServletRequest hsrqRequest)
hsrqRequest - - request that will be used by this navigator| Method Detail |
|---|
public java.lang.String getPostURL()
public java.lang.String getRootURL()
public java.lang.String getURL(Blog blog)
blog - - blog to get page URL for
public java.lang.String getBlogURL(java.lang.Object objBlogIdentification)
objBlogIdentification - - identification of the blog to get page URL
for, which should be the folder
public java.lang.String getURL(Blog blog,
Entry entry)
blog - - blog to which this entry belongs toentry - - entry to get page URL for
public java.lang.String getURL(org.opensubsystems.blog.www.BlogEntryIdentification entryIdentification)
entryIdentification - - identification of entry
public java.lang.Object getBlogIdentification(javax.servlet.http.HttpServletRequest hsrqRequest)
hsrqRequest - - the servlet request.
public org.opensubsystems.blog.www.BlogEntryIdentification getBlogEntryIdentification(javax.servlet.http.HttpServletRequest hsrqRequest)
hsrqRequest - - the servlet request.
public boolean isLoginPage()
public boolean isLogoutPage()
protected java.lang.StringBuffer getBlogRootURL(java.lang.String strId)
strId - - ID of the blog to get root URL for
protected java.lang.String getBlogEntryURL(java.lang.String strFolder,
int iEntryId)
strFolder - - folder where this entry belongs toiEntryId - - id of entry to get page URL for
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||