org.melati.login
Interface AccessHandler

Package class diagram package AccessHandler
All Known Implementing Classes:
CommandLineAccessHandler, HttpBasicAuthenticationAccessHandler, HttpSessionAccessHandler, OpenAccessHandler

public interface AccessHandler

A handler invoked when an AccessPoemException occurs. The actions required are to offer the user the opportunity to login and then return the user to the same point as they were before the AccessPoemException occurred and retry that operation.


Method Summary
 void buildRequest(Melati melati)
          Rebuild request if we have had to login, otherwise nothing.
 Melati establishUser(Melati melati)
          Called when a @link PoemTask} is initiated.
 void handleAccessException(Melati melati, AccessPoemException accessException)
          Deal with an AccessPoemException, often by allowing login.
 

Method Detail

handleAccessException

void handleAccessException(Melati melati,
                           AccessPoemException accessException)
                           throws Exception
Deal with an AccessPoemException, often by allowing login.

Parameters:
melati - current Melati
accessException - the AccessException
Throws:
Exception

establishUser

Melati establishUser(Melati melati)
Called when a @link PoemTask} is initiated.

Returns:
A Melati with the appropriate fields filled.
See Also:
PoemServlet.doConfiguredRequest(org.melati.Melati), AbstractPoemApp.doConfiguredRequest(org.melati.Melati)

buildRequest

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

Parameters:
melati - used to hold original request
Throws:
MelatiException
IOException


Copyright © 2000-2010 PanEris. All Rights Reserved.