fi.paatti.research.paattiapplication
Class PaattiResearchApplication

java.lang.Object
  extended by com.vaadin.Application
      extended by fi.paatti.research.paattiapplication.PaattiResearchApplication
All Implemented Interfaces:
com.vaadin.terminal.gwt.server.HttpServletRequestListener, com.vaadin.terminal.Terminal.ErrorListener, com.vaadin.terminal.URIHandler, Serializable

public class PaattiResearchApplication
extends com.vaadin.Application
implements com.vaadin.terminal.gwt.server.HttpServletRequestListener, Serializable

The application's "main" class opens the application tab sheet or login window, based on the user's cookie information.

Author:
Jari Salokangas, jari.p.t.salokangas@student.jyu.fi, Toni Salminen, toni.a.j.salminen@student.jyu.fi, Tapio Keränen, t.tapio.keranen@student.jyu.fi
See Also:
Serialized Form
 

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.Application
com.vaadin.Application.ApplicationError, com.vaadin.Application.CustomizedSystemMessages, com.vaadin.Application.SystemMessages, com.vaadin.Application.UserChangeEvent, com.vaadin.Application.UserChangeListener, com.vaadin.Application.WindowAttachEvent, com.vaadin.Application.WindowAttachListener, com.vaadin.Application.WindowDetachEvent, com.vaadin.Application.WindowDetachListener
 
Nested classes/interfaces inherited from interface com.vaadin.terminal.URIHandler
com.vaadin.terminal.URIHandler.ErrorEvent
 
Field Summary
static Logger logger
           
 
Constructor Summary
PaattiResearchApplication()
           
 
Method Summary
 fi.paatti.paattidatabaseutils.dbservice.PaattiResearchDBService getDBConnection()
          Returns the database sevice.
 fi.paatti.paattiloginutils.LoginHelper getLoginHelper()
          Returns the LoginHelper.
 void init()
          Initializes the view.
 void onRequestEnd(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method is called at the end of each request (see Vaadin's HttpServletRequestListener interface).
 void onRequestStart(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method is called before Terminal applies the request to application (see Vaadin's HttpServletRequestListener interface).
 
Methods inherited from class com.vaadin.Application
addListener, addListener, addListener, addResource, addWindow, close, getContext, getErrorHandler, getLocale, getLogoutURL, getMainWindow, getProperty, getPropertyNames, getRelativeLocation, getSystemMessages, getTheme, getURL, getUser, getVersion, getWindow, getWindows, handleURI, isRunning, removeListener, removeListener, removeListener, removeResource, removeWindow, setErrorHandler, setLocale, setLogoutURL, setMainWindow, setTheme, setUser, start, terminalError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final Logger logger
Constructor Detail

PaattiResearchApplication

public PaattiResearchApplication()
Method Detail

init

public void init()
Initializes the view.

Specified by:
init in class com.vaadin.Application

onRequestStart

public void onRequestStart(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
This method is called before Terminal applies the request to application (see Vaadin's HttpServletRequestListener interface).

Specified by:
onRequestStart in interface com.vaadin.terminal.gwt.server.HttpServletRequestListener
Parameters:
request - the servlet request.
response - the servlet response.

onRequestEnd

public void onRequestEnd(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
This method is called at the end of each request (see Vaadin's HttpServletRequestListener interface).

Specified by:
onRequestEnd in interface com.vaadin.terminal.gwt.server.HttpServletRequestListener
Parameters:
request - the servlet request.
response - the servlet response.

getLoginHelper

public fi.paatti.paattiloginutils.LoginHelper getLoginHelper()
Returns the LoginHelper.

Returns:
The LoginHelper.

getDBConnection

public fi.paatti.paattidatabaseutils.dbservice.PaattiResearchDBService getDBConnection()
Returns the database sevice.

Returns:
The database service.


Copyright © 2012. All Rights Reserved.