org.melati.login
Class OpenAccessHandler

Package class diagram package OpenAccessHandler
java.lang.Object
  extended by org.melati.login.OpenAccessHandler
All Implemented Interfaces:
AccessHandler

public class OpenAccessHandler
extends Object
implements AccessHandler

Allow any user access to the database. Typically used in a Melati application rather than a servlet environment.


Constructor Summary
OpenAccessHandler()
          Constructor.
 
Method Summary
 void buildRequest(Melati melati)
          Nothing to do.
 Melati establishUser(Melati melati)
          Set to guest if not set, remains null if we have no database.
 void handleAccessException(Melati melati, AccessPoemException accessException)
          Ignore AccessPoemExceptions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenAccessHandler

public OpenAccessHandler()
Constructor.

Method Detail

handleAccessException

public void handleAccessException(Melati melati,
                                  AccessPoemException accessException)
                           throws Exception
Ignore AccessPoemExceptions.

Specified by:
handleAccessException in interface AccessHandler
Parameters:
melati - current Melati
accessException - the AccessException
Throws:
Exception
See Also:
AccessHandler.handleAccessException(org.melati.Melati, org.melati.poem.AccessPoemException)

establishUser

public Melati establishUser(Melati melati)
Set to guest if not set, remains null if we have no database. Called when a @link PoemTask} is initiated.

Specified by:
establishUser in interface AccessHandler
Returns:
A Melati with the appropriate fields filled.
See Also:
AccessHandler.establishUser(org.melati.Melati)

buildRequest

public void buildRequest(Melati melati)
                  throws MelatiException,
                         IOException
Nothing to do. Rebuild request if we have had to login, otherwise nothing.

Specified by:
buildRequest in interface AccessHandler
Parameters:
melati - used to hold original request
Throws:
MelatiException
IOException
See Also:
AccessHandler.buildRequest(org.melati.Melati)


Copyright © 2000-2010 PanEris. All Rights Reserved.