Java Doc for BaseController.java in  » J2EE » Sofia » com » salmonllc » examples » 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 » J2EE » Sofia » com.salmonllc.examples 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.salmonllc.jsp.JspController
   com.salmonllc.examples.BaseController

All known Subclasses:   com.salmonllc.examples.SourceViewController,
BaseController
public class BaseController extends JspController implements SubmitListener,PageListener(Code)
This controller is used as the ancestor for the other controllers in the example app. Generally, every controller will extend from this one, but the examples all extend JspController in order to keep them encapsulated. This controller has more functionality than is requied by the sample application so it can be copied and used as a starting point for your application's base controller. It implements frequently used interfaces at the base level to avoid having to implement all the methods in each controller. Also, it provides some basic functionality such as checking if the session or page is required and redirecting the user to the appropriate page.


Field Summary
public  com.salmonllc.jsp.JspContainer_noCache
    


Method Summary
public  booleangetBooleanParameter(String name)
     This method tries to get the string parameter passed into this function from the URL.
public  CookiegetCookie(String key)
     Return the text of the request referer, if available, else null.
public  intgetIntParameter(String name)
     This method tries to get the integer value from the parameter in the URL called passed into this method.
public  SessionManagergetSessionManager()
     Gets the SessionManager for this application.
public  booleanhasPageRedirected()
    
public  voidinitialize()
    
public  voidpageRequestEnd(PageEvent p)
     This method/event will get fired each time a page is requested by the browser after Html is generated and sent back.
public  voidpageRequested(PageEvent p)
     This method/event will get fired each time a page is requested by the browser before Html is generated and sent back.
public  voidpageSubmitEnd(PageEvent p)
     This method occurs each time a page is submitted after submit values are copied to components.
public  voidpageSubmitted(PageEvent p)
     This method occurs each time a page is submitted before submit values are copied to components.
public  voidsetCheckPageExpired(boolean check)
    
public  voidsetCheckSessionExpired(boolean check)
    
public  voidsetNoCache(boolean noCache)
     If you want to have the browser cache this page instead of reloading it each time call this method with a true argument.
public  booleansubmitPerformed(SubmitEvent e)
     This method is used to signal that a submit button has been pressed, and that the user has intended to submit the descendant class/page.

Field Detail
_noCache
public com.salmonllc.jsp.JspContainer _noCache(Code)





Method Detail
getBooleanParameter
public boolean getBooleanParameter(String name)(Code)
This method tries to get the string parameter passed into this function from the URL. It then checks to see if that "name" parameter is of boolean type. The default is FALSE.
Parameters:
  name - - name of the parameter that is being looked up



getCookie
public Cookie getCookie(String key)(Code)
Return the text of the request referer, if available, else null.
Parameters:
  key - - name of the cookie java.lang.String



getIntParameter
public int getIntParameter(String name)(Code)
This method tries to get the integer value from the parameter in the URL called passed into this method. If the value of the parameter is not an integer, a -1 value will be returned.
Parameters:
  name - - name of the parameter that is being looked up int - returns the value of the parameter as an int, if the value can NOT be cast to an int -1 is returned



getSessionManager
public SessionManager getSessionManager()(Code)
Gets the SessionManager for this application.



hasPageRedirected
public boolean hasPageRedirected()(Code)
Returns true if either the page or the session is expired and the page has been redirected to another page indicating that



initialize
public void initialize() throws Exception(Code)
This method - creates a SessionManager a page Listener - adds a page Listener - adds a page Listener
throws:
  Exception - if anything goes wrong



pageRequestEnd
public void pageRequestEnd(PageEvent p) throws Exception(Code)
This method/event will get fired each time a page is requested by the browser after Html is generated and sent back.
Parameters:
  p - PageEvent
throws:
  Exception - if anything goes wrong



pageRequested
public void pageRequested(PageEvent p) throws Exception(Code)
This method/event will get fired each time a page is requested by the browser before Html is generated and sent back.
Parameters:
  p - PageEvent
throws:
  Exception - if anything goes wrong



pageSubmitEnd
public void pageSubmitEnd(PageEvent p)(Code)
This method occurs each time a page is submitted after submit values are copied to components.
Parameters:
  p - PageEvent



pageSubmitted
public void pageSubmitted(PageEvent p)(Code)
This method occurs each time a page is submitted before submit values are copied to components.
Parameters:
  p - PageEvent



setCheckPageExpired
public void setCheckPageExpired(boolean check)(Code)
Tells the page whether or not it should check whether the page is expired on each request



setCheckSessionExpired
public void setCheckSessionExpired(boolean check)(Code)
Tells the page whether or not it should check whether the session is expired on each request



setNoCache
public void setNoCache(boolean noCache)(Code)
If you want to have the browser cache this page instead of reloading it each time call this method with a true argument.



submitPerformed
public boolean submitPerformed(SubmitEvent e) throws Exception(Code)
This method is used to signal that a submit button has been pressed, and that the user has intended to submit the descendant class/page.
Parameters:
  e - SubmitEvent
throws:
  Exception - if anything goes wrong true to continue processing events on the page or false to abort



Methods inherited from com.salmonllc.jsp.JspController
public void assignComponentToField(String fieldName, HtmlComponent comp, boolean addToPage)(Code)(Java Doc)
public void assignDataSourceToField(String fieldName, DataStoreBuffer ds)(Code)(Java Doc)
public void assignPropertyExpression(String component, String propName, String expression, DataStoreBuffer dataStore)(Code)(Java Doc)
public void autoBindComponents() throws Exception(Code)(Java Doc)
public void clearAllPagesFromSession()(Code)(Java Doc)
public void clearAllPagesFromSessionButCurrent()(Code)(Java Doc)
public void clearInitializing()(Code)(Java Doc)
public void clearPageFromSession()(Code)(Java Doc)
public String convertExpressionOperators(String expression)(Code)(Java Doc)
public synchronized int doGet(HttpServletRequest req, boolean pre) throws Exception(Code)(Java Doc)
public synchronized int doPost(HttpServletRequest req, HttpServletResponse res) throws Exception(Code)(Java Doc)
public void forward(String url) throws IOException, ServletException(Code)(Java Doc)
public void generateBodyHtml(JspWriter p) throws IOException(Code)(Java Doc)
public void generateCode(PrintWriter pw, String controllerName) throws IOException(Code)(Java Doc)
public void generateScriptHtml(JspWriter p) throws java.lang.Exception(Code)(Java Doc)
public void generateSessionKeepAliveHtml(JspWriter p) throws IOException(Code)(Java Doc)
public boolean getAddExpireHeaders()(Code)(Java Doc)
public HtmlFormComponent getBoundComponent(DataStoreBuffer dsb, String columnName)(Code)(Java Doc)
public HtmlComponent getComponent(String name)(Code)(Java Doc)
public Hashtable getComponentTable()(Code)(Java Doc)
public DataStoreBuffer getDataSource(String name)(Code)(Java Doc)
public DataStoreBuffer getDataSource(Class c)(Code)(Java Doc)
public Hashtable getDataSourceTable()(Code)(Java Doc)
public Enumeration getDataSources()(Code)(Java Doc)
public boolean getDoPostRedirected()(Code)(Java Doc)
public boolean getHideAllComponents()(Code)(Java Doc)
public boolean getKeepOnSession()(Code)(Java Doc)
public String getOnClick()(Code)(Java Doc)
public String getOnLoad()(Code)(Java Doc)
public String getOnLoadFunction()(Code)(Java Doc)
public PageContext getPageContext()(Code)(Java Doc)
public String getPageURL()(Code)(Java Doc)
public String getPageURLNoQueryString()(Code)(Java Doc)
public int getRefIndex()(Code)(Java Doc)
public JspController getSecondaryController()(Code)(Java Doc)
public int getSessionKeepAliveMinutes()(Code)(Java Doc)
public String getSessionKey()(Code)(Java Doc)
public String getStyle()(Code)(Java Doc)
public Vector getValidators()(Code)(Java Doc)
public String getWebAppName()(Code)(Java Doc)
public void gotoSiteMapActionPage(String logicalName, String actionName, String additionalParms) throws IOException, ServletException(Code)(Java Doc)
public void gotoSiteMapActionPage(String actionName, String additionalParms) throws IOException, ServletException(Code)(Java Doc)
public void gotoSiteMapActionPage(String actionName) throws IOException, ServletException(Code)(Java Doc)
public void gotoSiteMapPage(String logicalName) throws IOException, ServletException(Code)(Java Doc)
public void gotoSiteMapPage(String logicalName, String additionalParms) throws IOException, ServletException(Code)(Java Doc)
public void incrementRefIndex()(Code)(Java Doc)
public void initialize() throws Exception(Code)(Java Doc)
public void initializeContainers() throws Exception(Code)(Java Doc)
public boolean isExpired()(Code)(Java Doc)
public boolean isIncludeIDAfterPost()(Code)(Java Doc)
public boolean isInitialized()(Code)(Java Doc)
public boolean isInitializing()(Code)(Java Doc)
public boolean isReferredByCurrentPage()(Code)(Java Doc)
public boolean isRequestFromForward()(Code)(Java Doc)
public void loadProperties()(Code)(Java Doc)
protected boolean notifyListeners(int event, boolean pre) throws Exception(Code)(Java Doc)
public void printVars(PrintWriter p) throws IOException(Code)(Java Doc)
public void recordTimerActivity(String name, long timeInMillis)(Code)(Java Doc)
public void replaceComponent(String name, HtmlComponent newComponent)(Code)(Java Doc)
public void replaceDataSource(String name, DataStoreBuffer newDs)(Code)(Java Doc)
public void sendPageRedirect() throws IOException(Code)(Java Doc)
public void sendPageRedirect(String anchor) throws IOException(Code)(Java Doc)
public void sendRedirect(String url) throws IOException(Code)(Java Doc)
public void setAddExpireHeaders(boolean val)(Code)(Java Doc)
public void setApplicationName(String name)(Code)(Java Doc)
public void setCurrentRequest(HttpServletRequest r)(Code)(Java Doc)
public void setCurrentResponse(HttpServletResponse r)(Code)(Java Doc)
public void setDoPostRedirected(boolean dopostredirected)(Code)(Java Doc)
public void setHideAllComponents(boolean hideAllComponents)(Code)(Java Doc)
public void setIncludeIDAfterPost(boolean includeIDAfterPost)(Code)(Java Doc)
public void setInitialized()(Code)(Java Doc)
public void setKeepOnSession(boolean keep)(Code)(Java Doc)
public void setOnBlur(String script)(Code)(Java Doc)
public void setOnClick(String script)(Code)(Java Doc)
public void setOnFocus(String script)(Code)(Java Doc)
public void setOnKeydown(String script)(Code)(Java Doc)
public void setOnLoad(String script)(Code)(Java Doc)
public void setOrigApplicationName(String name)(Code)(Java Doc)
public void setPageContext(PageContext cont)(Code)(Java Doc)
public void setPageExpired(boolean exp)(Code)(Java Doc)
public void setPageName(String name)(Code)(Java Doc)
public void setRemoveFromQueryString(String val)(Code)(Java Doc)
public void setSecondaryController(JspController cont)(Code)(Java Doc)
public void setServerURL(String url)(Code)(Java Doc)
public void setServletBaseURL(String url)(Code)(Java Doc)
public void setSession(HttpSession s)(Code)(Java Doc)
public void setSessionExpired(boolean exp)(Code)(Java Doc)
public void setSessionKeepAliveMinutes(int keepAliveMinutes)(Code)(Java Doc)
public void setSessionKey(String key)(Code)(Java Doc)
public void setStyle(String style)(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.