Java Doc for RollerRequest.java in  » Blogger-System » apache-roller-3.1 » org » apache » roller » ui » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Blogger System » apache roller 3.1 » org.apache.roller.ui.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.roller.ui.core.RollerRequest

RollerRequest
public class RollerRequest (Code)
Access to objects and values specified by request. Parses out arguments from request URL needed for various parts of Roller and makes them available via getter methods.

These forms of pathinfo get special support (where 'handle' indicates website):

 [handle] - get default page for user for today's date 
 [handle]/[date] - get default page for user for specified date 
 [handle]/[pagelink] - get specified page for today's date 
 [handle]/[pagelink]/[date] - get specified page for specified date
 [handle]/[pagelink]/[anchor] - get specified page & entry (by anchor)
 [handle]/[pagelink]/[date]/[anchor] - get specified page & entry (by anchor)
 

author:
   David M Johnson


Field Summary
final public static  StringROLLER_REQUEST
    

Constructor Summary
public  RollerRequest(HttpServletRequest req, ServletContext ctx)
    
public  RollerRequest(ServletRequest req, ServletContext ctx)
    
public  RollerRequest(PageContext pCtx)
    

Method Summary
public  BookmarkDatagetBookmark()
     Gets the BookmarkData specified by the request, or null.
public  DategetDate()
     Gets the date specified by the request, or null.
public  DategetDate(boolean orToday)
     Gets the date specified by the request
Parameters:
  orToday - If no date specified, then use today's date.
public  StringgetDateString1()
    
public  FolderDatagetFolder()
     Gets the FolderData specified by the request, or null.
public  TemplategetPage()
     Gets the WeblogTemplate specified by the request, or null.
public  PageContextgetPageContext()
    
public  StringgetPageLink()
     Gets the page link name specified by the request, or null.
public  StringgetPathInfo()
     Gets the path-info specified by the request, or null.
public  StringgetRefererURL()
     Gets the Referer URL specified by the request, or null.
public  HttpServletRequestgetRequest()
    
public  StringgetRequestURL()
     Gets the Request URL specified by the request, or null.
public static  RollerRequestgetRollerRequest(HttpServletRequest r, ServletContext ctx)
     Get the RollerRequest object that is stored in the request.
public static  RollerRequestgetRollerRequest(HttpServletRequest r)
     Get the RollerRequest object that is stored in the request.
public static  RollerRequestgetRollerRequest(PageContext p)
     Get the RollerRequest object that is stored in the request.
public static  RollerRequestgetRollerRequest()
     Get RollerRequest object for the current thread using EVIL MAGIC, do not use unless you absolutely, positively, cannot use on of the getRollerRequest() methods.
public  ServletContextgetServletContext()
     Get the RollerRequest object that is stored in the requeset.
public  WeblogCategoryDatagetWeblogCategory()
     Gets the WeblogCategoryData specified by the request, or null.
public  WeblogEntryDatagetWeblogEntry()
     Gets the WeblogEntryData specified by the request, or null. Why is this done lazily in the parseRequestParameters() method? Because: that method is called from init(), which is called from a ServletFilter, and sometimes request parameters are not available in a ServletFiler.
public  intgetWeblogEntryCount()
    
public  WebsiteDatagetWebsite()
     Gets the WebsiteData specified in the path info of the request URI, this is NOT the same thing as the "current website" (i.e.
public  booleanisDaySpecified()
    
public  booleanisEnableLinkback()
    
public  booleanisMonthSpecified()
    
public  voidsetPage(org.apache.roller.pojos.Template page)
     Allow comment servlet to inject page that it has chosen.
public  voidsetPageContext(PageContext p)
    
public  voidsetWebsite(WebsiteData wd)
    
public  StringtoString()
    

Field Detail
ROLLER_REQUEST
final public static String ROLLER_REQUEST(Code)




Constructor Detail
RollerRequest
public RollerRequest(HttpServletRequest req, ServletContext ctx) throws RollerException(Code)
Construct Roller request for a Servlet request



RollerRequest
public RollerRequest(ServletRequest req, ServletContext ctx) throws RollerException(Code)
Convenience



RollerRequest
public RollerRequest(PageContext pCtx) throws RollerException(Code)




Method Detail
getBookmark
public BookmarkData getBookmark()(Code)
Gets the BookmarkData specified by the request, or null. BookmarkData



getDate
public Date getDate()(Code)
Gets the date specified by the request, or null. Date



getDate
public Date getDate(boolean orToday)(Code)
Gets the date specified by the request
Parameters:
  orToday - If no date specified, then use today's date. Date



getDateString1
public String getDateString1()(Code)



getFolder
public FolderData getFolder()(Code)
Gets the FolderData specified by the request, or null. FolderData



getPage
public Template getPage()(Code)
Gets the WeblogTemplate specified by the request, or null. WeblogTemplate



getPageContext
public PageContext getPageContext()(Code)
Get HttpServletmRequest that is wrapped by this RollerRequest



getPageLink
public String getPageLink()(Code)
Gets the page link name specified by the request, or null. String



getPathInfo
public String getPathInfo()(Code)
Gets the path-info specified by the request, or null. String



getRefererURL
public String getRefererURL()(Code)
Gets the Referer URL specified by the request, or null. String



getRequest
public HttpServletRequest getRequest()(Code)
Get HttpServletmRequest that is wrapped by this RollerRequest



getRequestURL
public String getRequestURL()(Code)
Gets the Request URL specified by the request, or null. String



getRollerRequest
public static RollerRequest getRollerRequest(HttpServletRequest r, ServletContext ctx) throws RollerException(Code)
Get the RollerRequest object that is stored in the request. Creates RollerRequest if one not found in mRequest.



getRollerRequest
public static RollerRequest getRollerRequest(HttpServletRequest r)(Code)
Get the RollerRequest object that is stored in the request. Creates RollerRequest if one not found in mRequest.



getRollerRequest
public static RollerRequest getRollerRequest(PageContext p) throws RollerException(Code)
Get the RollerRequest object that is stored in the request. Creates RollerRequest if one not found in mRequest.



getRollerRequest
public static RollerRequest getRollerRequest()(Code)
Get RollerRequest object for the current thread using EVIL MAGIC, do not use unless you absolutely, positively, cannot use on of the getRollerRequest() methods.



getServletContext
public ServletContext getServletContext()(Code)
Get the RollerRequest object that is stored in the requeset. Creates RollerRequest if one not found in mRequest.



getWeblogCategory
public WeblogCategoryData getWeblogCategory()(Code)
Gets the WeblogCategoryData specified by the request, or null.



getWeblogEntry
public WeblogEntryData getWeblogEntry()(Code)
Gets the WeblogEntryData specified by the request, or null. Why is this done lazily in the parseRequestParameters() method? Because: that method is called from init(), which is called from a ServletFilter, and sometimes request parameters are not available in a ServletFiler. They ARE available when the URL points to a JSP, but they ARE NOT available when the URL points to the PageServlet. This may be a Tomcat bug, I'm not sure. WeblogEntryData



getWeblogEntryCount
public int getWeblogEntryCount()(Code)



getWebsite
public WebsiteData getWebsite()(Code)
Gets the WebsiteData specified in the path info of the request URI, this is NOT the same thing as the "current website" (i.e. the one that the session's authenticated user is currently editing). WebsiteData object specified by request URI.



isDaySpecified
public boolean isDaySpecified()(Code)



isEnableLinkback
public boolean isEnableLinkback()(Code)

See Also:   org.apache.roller.pojos.ParsedRequest.isLinkbackEnabled



isMonthSpecified
public boolean isMonthSpecified()(Code)



setPage
public void setPage(org.apache.roller.pojos.Template page)(Code)
Allow comment servlet to inject page that it has chosen.



setPageContext
public void setPageContext(PageContext p)(Code)



setWebsite
public void setWebsite(WebsiteData wd)(Code)



toString
public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.