|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object olr.presentation.ExtendedHttpPresentation
Constructor Summary | |
ExtendedHttpPresentation()
Creates an instance. |
Method Summary | |
protected void |
checkForUserLogin()
Checks if the user is already logged in. |
void |
clearSession()
Clears the current users session. |
Olr |
getApplication()
|
com.lutris.appserver.server.httpPresentation.HttpPresentationComms |
getComms()
|
java.lang.String |
getPageContentForEvent(java.lang.String event)
Call a method to produce page content depending on the event. |
SessionData |
getSessionData()
|
RdfUser |
getUser()
|
abstract java.lang.String |
handleDefault()
Called upon page request. |
void |
handleEvent(com.lutris.appserver.server.httpPresentation.HttpPresentationComms comms)
|
protected void |
initSessionData(com.lutris.appserver.server.httpPresentation.HttpPresentationComms comms)
Initializes session data based on comms |
protected abstract boolean |
loggedInUserRequired()
Called on subclass to determine if this Presenentation needs a valid logged in user to display. |
void |
run(com.lutris.appserver.server.httpPresentation.HttpPresentationComms comms)
|
void |
setUser(RdfUser user)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExtendedHttpPresentation()
Method Detail |
public abstract java.lang.String handleDefault() throws com.lutris.appserver.server.httpPresentation.HttpPresentationException
com.lutris.appserver.server.httpPresentation.HttpPresentationException
protected abstract boolean loggedInUserRequired()
public com.lutris.appserver.server.httpPresentation.HttpPresentationComms getComms()
public SessionData getSessionData()
public void setUser(RdfUser user) throws com.lutris.appserver.server.httpPresentation.HttpPresentationException
user
- The current logged in user
com.lutris.appserver.server.httpPresentation.HttpPresentationException
public RdfUser getUser()
public void clearSession()
SessionData
public void run(com.lutris.appserver.server.httpPresentation.HttpPresentationComms comms) throws java.lang.Exception
run
in interface com.lutris.appserver.server.httpPresentation.HttpPresentation
java.lang.Exception
HttpPresentation.run(com.lutris.appserver.server.httpPresentation.HttpPresentationComms)
protected void initSessionData(com.lutris.appserver.server.httpPresentation.HttpPresentationComms comms) throws com.lutris.appserver.server.httpPresentation.HttpPresentationException
comms
- Parameter object
com.lutris.appserver.server.httpPresentation.HttpPresentationException
protected void checkForUserLogin() throws com.lutris.appserver.server.httpPresentation.HttpPresentationException, com.lutris.appserver.server.httpPresentation.ClientPageRedirectException
com.lutris.appserver.server.httpPresentation.HttpPresentationException
com.lutris.appserver.server.httpPresentation.ClientPageRedirectException
- Ifpublic void handleEvent(com.lutris.appserver.server.httpPresentation.HttpPresentationComms comms) throws java.lang.Exception
comms
-
java.lang.Exception
public java.lang.String getPageContentForEvent(java.lang.String event) throws java.lang.Exception
Call a method to produce page content depending on the event. The method called
is perfomed using java reflection. The name of the called method is
handel<event>()
where the first letter of the event> is made
uppercase.
Example: event=login results in a method call handleLogin()
event
-
java.lang.Exception
#toMethodName(String)
public Olr getApplication()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |