Java Doc for BasePO.java in  » J2EE » Enhydra-Demos » com » lutris » airsent » presentation » 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 » Enhydra Demos » com.lutris.airsent.presentation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lutris.airsent.presentation.BasePO

All known Subclasses:   com.lutris.airsent.presentation.customer.Register,  com.lutris.airsent.presentation.admin.AdminMain,  com.lutris.airsent.presentation.customer.OrderPage2,  com.lutris.airsent.presentation.customer.OrderPage3,  com.lutris.airsent.presentation.admin.AdminLogin,  com.lutris.airsent.presentation.Welcome,  com.lutris.airsent.presentation.admin.AdminDetails,  com.lutris.airsent.presentation.customer.Login,  com.lutris.airsent.presentation.customer.AccountHistory,  com.lutris.airsent.presentation.customer.OrderPage1,  com.lutris.airsent.presentation.aboutAirSent,  com.lutris.airsent.presentation.admin.NewMessenger,  com.lutris.airsent.presentation.customer.OrderPage4,  com.lutris.airsent.presentation.help,  com.lutris.airsent.presentation.DeviceBasePO,
BasePO
abstract public class BasePO implements HttpPresentation(Code)
This is the parent Presentaion object. All presentation objects should extend this class. The run method looks for an event parameter and then calls handle. If the "event" Parameter is not defined then the handleDefault() method is called in your child class.


Field Summary
protected  HttpPresentationCommsmyComms
    
protected  AirSentSessionDatamySessionData
    


Method Summary
protected  voidcheckAuthLevel()
     Checks the session data to see if the user has the authorization to access the given page.
protected static  booleancheckField(String field, int size)
     Returns true if the given string is null, empty, or contains only white space.
public static  voiddump(HttpPresentationComms comms)
    
public static  voiddumpHeaders(HttpPresentationComms comms)
    
public  AirSentgetApplication()
     Returns the application object associated with the current request.
public  HttpPresentationCommsgetComms()
    
protected  intgetCurrentAuthLevel()
    
public  XMLObjectgetPage(String event)
     If an event parameter is defined then this invokes the method that handles that event.
abstract protected  intgetRequiredAuthLevel()
     This method should be implemented in the subclass so that it returns the authorization level necessary to access the po.
public  AirSentSessionDatagetSessionData()
    
protected  StringgetURIPrefix()
     Gets the URI prefix.
abstract public  XMLObjecthandleDefault()
     This is the procedure that is called if there is no "event" HTTP parameter found.
public  voidhandleEvent(HttpPresentationComms comms)
    
public  XMLObjecthandleLogout()
     this logs out a user from the session.
protected  voidinitSessionData(HttpPresentationComms comms)
    
protected static  booleanisNullField(String field)
     Returns true if the given string is null, empty, or contains only white space.
protected  voidrerouteForContent(HttpPresentationComms comms)
     Method that determines which content to output based on the accept type.
public  voidrun(HttpPresentationComms comms)
     This implements the run method in HttpPresentation.
public static  voidwriteDebugMsg(String msg)
    

Field Detail
myComms
protected HttpPresentationComms myComms(Code)
Saved input and output context, and session data



mySessionData
protected AirSentSessionData mySessionData(Code)





Method Detail
checkAuthLevel
protected void checkAuthLevel() throws ClientPageRedirectException, AirSentPresentationException(Code)
Checks the session data to see if the user has the authorization to access the given page. Authorization levels include: UNAUTH_USER (0) -- login not required. CUSTOMER_USER (1) -- login as customer required. MESSENGER_USER (2) -- login as messenger required. ADMIN_USER (3) -- login as administrator required. SIDE EFFECTS: redirects to login page if user not authorized to access page.



checkField
protected static boolean checkField(String field, int size)(Code)
Returns true if the given string is null, empty, or contains only white space.



dump
public static void dump(HttpPresentationComms comms)(Code)



dumpHeaders
public static void dumpHeaders(HttpPresentationComms comms)(Code)



getApplication
public AirSent getApplication()(Code)
Returns the application object associated with the current request. the application object.



getComms
public HttpPresentationComms getComms()(Code)
Gets HttpPresentation object The saved comms objectsto whichever subclass needs it



getCurrentAuthLevel
protected int getCurrentAuthLevel() throws ClientPageRedirectException, AirSentPresentationException(Code)
Checks the session data for a Student, if not there then redirects to the login page return the current authorization level (set during login) an int equal to the current authorization level.



getPage
public XMLObject getPage(String event) throws Exception(Code)
If an event parameter is defined then this invokes the method that handles that event. event, the incoming event name
exception:
  Exception -



getRequiredAuthLevel
abstract protected int getRequiredAuthLevel()(Code)
This method should be implemented in the subclass so that it returns the authorization level necessary to access the po.



getSessionData
public AirSentSessionData getSessionData()(Code)
Gets the session data session data



getURIPrefix
protected String getURIPrefix() throws AirSentPresentationException(Code)
Gets the URI prefix. Special because some devices incorrectly handle this.



handleDefault
abstract public XMLObject handleDefault() throws HttpPresentationException(Code)
This is the procedure that is called if there is no "event" HTTP parameter found. It must be overriden by the subclass to do default processing or error checking/handling. String The String representation of the HTML or (other format)of the document to be displayed. This method would need to be changedif you wanted to return binary data as well. It returns a Stringfor simplicity right now.



handleEvent
public void handleEvent(HttpPresentationComms comms) throws Exception(Code)
Method to call the proper method for the incoming event
Parameters:
  HttpPresentationComms -
exception:
  Exception -



handleLogout
public XMLObject handleLogout() throws AirSentPresentationException(Code)
this logs out a user from the session. it first grabs an instance of the sessionData associated with the request and then sets the user to null in the session data.
Parameters:
  HttpServletRequest - request - this is the request thatthe session data is extracted from.
exception:
  AirSentPresentationException - when an error occurs or ifthe session data for the request is null.



initSessionData
protected void initSessionData(HttpPresentationComms comms) throws AirSentPresentationException(Code)
Method to get or create the AirSentSessionData object from the user session This object is saved in the AirSentPresentation object
Parameters:
  HttpPresentationComms -
exception:
  Exception -



isNullField
protected static boolean isNullField(String field)(Code)
Returns true if the given string is null, empty, or contains only white space.



rerouteForContent
protected void rerouteForContent(HttpPresentationComms comms) throws AirSentPresentationException(Code)
Method that determines which content to output based on the accept type. Current types: text/html text/xml text/vnd.wap.wml



run
public void run(HttpPresentationComms comms) throws Exception(Code)
This implements the run method in HttpPresentation.
Parameters:
  HttpPresentationComms -
exception:
  Exception -



writeDebugMsg
public static void writeDebugMsg(String msg)(Code)
Method to write a debugging message to the debug log channel when the DEBUG flag is turned on
Parameters:
  msg - The message to write to the DEBUG log channel



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.