| java.lang.Object org.apache.roller.ui.rendering.util.ParsedRequest org.apache.roller.ui.rendering.util.WeblogRequest
All known Subclasses: org.apache.roller.ui.rendering.util.WeblogSearchRequest, org.apache.roller.ui.rendering.util.WeblogPageRequest, org.apache.roller.ui.rendering.util.WeblogResourceRequest, org.apache.roller.ui.rendering.util.WeblogFeedRequest, org.apache.roller.ui.rendering.util.WeblogCommentRequest, org.apache.roller.ui.rendering.util.WeblogTrackbackRequest,
WeblogRequest | public class WeblogRequest extends ParsedRequest (Code) | | Represents a request to a weblog.
This is a fairly generic parsed request which is only trying to figure out
the elements of a weblog request which apply to all weblogs. We try to
determine the weblogHandle, if a locale was specified, and then what extra
path info remains. The basic format is like this ...
/[/locale][/extra/path/info]
All weblog urls require a weblogHandle, so we ensure that part of the url is
properly specified. locale is always optional, so we do our best to see
if a locale is specified. and path info is always optional.
NOTE: this class purposely exposes a getPathInfo() method which provides the
path info specified by the request that has not been parsed by this
particular class. this makes it relatively easy for subclasses to extend
this class and simply pick up where it left off in the parsing process.
|
WeblogRequest | public WeblogRequest()(Code) | | |
getLocaleInstance | public Locale getLocaleInstance()(Code) | | Get the Locale instance to be used for this request.
The Locale is determined via these rules ...
1. if a locale is explicitly specified, then it is used
2. if no locale is specified, then use the weblog default locale
|
isLocale | protected boolean isLocale(String potentialLocale)(Code) | | Convenience method which determines if the given string is a valid
locale string.
|
setLocaleInstance | public void setLocaleInstance(Locale localeInstance)(Code) | | |
setWeblogHandle | public void setWeblogHandle(String weblogHandle)(Code) | | |
|
|